As we have already basics of the SAP Smart Forms, in this article we will learn to build Smart Forms in SAP ABAP to print a simple text.
Steps to build Smart Forms in SAP ABAP
Step 1: SMARTFORMS is the t-code for Smart Forms. Enter SMARTFORMS in the common field.
Step 2: Enter a form name and click on Create button.
Step 3: Enter a short description of the Smart Forms.
Step 4: To create a text, expand the node “Pages and Windows”, then “New Page”. Right-click on “Main Window”, then click on Create -> Text.
Step 5: Give a name and description of this text. And enter the text which has to be printed.
Step 6: Save and activate the Smart Forms.
Step 7: To find the function module that got generated upon activation of the Smart Forms Click on Environment -> Function Module.
A pop-up with the name of the function module will appear.
Step 8: Copy the function module name and open t-code SE38 and enter the function module name.
Step 9: Execute the function module.
Step 10: Since there are no parameters to pass, click on Execute.