Smart Forms - Working with Loop

By Venkat

Step1: Provide the name of the smart form is YDEMO_LOOP on the initial screen of the smart form and meaningful description. 

Step2: Now go to Global definitions where we can define the Global data, Types, Initialization and etc.

Define Structure using Types Parameter as shown below. In Types parameters we usually define user defined data types. 

 

Step3:  Now define the internal table and work area in Global Data parameter. 

 

Step4: In Initialization parameter, we can write a code as shown below. We have to mention the output result in the output parameter so that we can use it further. Here in this case we are outputting IT_TAB and we are going to use this IT_TAB further in the LOOP in the Flow Logic. 

 

Step5: Create a LOOP statement as shown below. 

 

Step6: Now Loop the internal table. 

 

Step7: To create the character, paragraph formats and Tabs, we use the smart style. The transaction for create smart style is SMARTSTYLE or we can be created the initial screen of SMARTFORMS. Here SMART STYLE is created to define Tab positions for the columns. 

 

Step8: Create a node for PARAGRAPH FORMAT as shown below. 

 

The following screen appears. 

 

Step9: Now define the Tabs as shown below. 

 

Step10: Now Import SMART STYLE in to the SMART FORM as shown below. 

 

Step11: Now create a text element for the loop statement. 

 

Step12: Save and activate the smart form. The output is as shown below. 

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image