Change the function module name. Activate the program and Execute the program. Click on print preview. Here we have the smartform output. Like Like. You are commenting using your WordPress. You are commenting using your Google account. You are commenting using your Twitter account. You are commenting using your Facebook account. Notify me of new comments via email. Notify me of new posts via email. Skip to content.
Because of this simple sample smart form tutorial, I will not call the smartform document from an other ABAP program or report. Thus, I will not use the Form Interface which is necessary when ABAP developers can use for data transfer from outside the sap smartforms application. Let's start to create first SAP Smartform document.
Click on the Global Definitions tab of your Smartform. These type declarations will help me define table variables and work area structures in the Global Data section. Now, go to Global Data tab and create global table variables and data structures as work areas. Table variables will store report data in SAP Smartform and work area or data structure will be used during loops to keep loop data. Now, we are ready to create report data we want to display using SAP Smartforms. I will select a range of sales documents according to their vbeln numbers.
After we are finished with Global Definitions for data types, variables and initial data, we can now continue with Smartform elements for displaying results. Give a descriptive name to the Loop Description text area. Also set the Row range from 1 to a logical number for example , etc. First of all, we will create a text element under the Loop element node. Then we will add a table element in order to display the items of the loop item.
The last Smartform element which we will create on this Smartforms example document is Command element. We will use the Command element in order to set page break between two vbak header records. Below is the screenshot that the SAP Smartform elements of this example smartform.
Note that the descriptions of the smartform elements are given due to their respective tasks. Change the name and description of the Text. Click on Insert Field button to enter the variable in the page. Step Enter the Work area and field as given below.
Do the same step for the other 4 columns. Step Save and activate the Smartform. Steps for Creating Program and calling above Smartform. Now write the Source Code in the Editor:. Step Save and activate the Report.
0コメント