Create Sales Order in Java Web Dynpro using BAPI

This notes is intend to share my understanding about how Java Web Dynpro works when using form and table. Form and table are commonly used in programming especially to develop interface or report. But as my experience when explored Java web dynpro, example tutorial about it was very limited. Then I found a blog that explain about it written by Perumal Kanthan, you can access it on:

http://scn.sap.com/people/perumal.kanthan/blog/2005/03/09/handling-structuretable-transactions-using-bapis-in-web-dynpro-part-i

http://scn.sap.com/people/perumal.kanthan/blog/2005/03/09/handling-structuretable-transactions-using-bapis-in-web-dynpro-part-ii

Based on what Perumal Kanthan’s wrote, I improve the ability of my app to be able to retrieve multiple data based on user input at runtime.

So, my blog my give a clue if:

1) You want to use combination of form and display it first on a table to collect user input before bound into context and submit to RFC.

2) You want to know how to add multiple data based on user input at runtime

Screenshot of the result of this tutorial
Screenshot of the result of this tutorial

Applies to:

SAP Netweaver Composition Environment 7.3

Overview:

Layout of data that will input by user
Layout of data that will be filled by user

In this tutorial, we will try to create sales order using BAPI in Java Web Dynpro. The final result will be like the screenshot below. We will try to bind data that comes from user input into BAPI. This tutorial will use BAPI_SALES_CREATEFROMDAT2, BAPI_TRANSACTION_COMMIT, and BAPI_TRANSACTION_ROLLBACK. The main concept about the use of BAPI in Java Web Dynpro is BAPI will be imported as model data that will be converted as java class which will be used in developing java code.

As your basic knowledge in SAP SD, sales order is formed from three big section: header level, item level, and schedule lines level. We will provide a form that will be filled up with header data, multiple items data that can be added and deleted, then will show the return log after user press the button to create sales order.

Result Log After Button Create Sales Order is Pressed
Result log after button create sales order is pressed

Since this tutorial is too long to be published online, here I provide the link of file that you can download: Create Sales Order in Java Web Dynpro using BAPI

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s