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:
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
SAP Netweaver Composition Environment 7.3
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.
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