0% found this document useful (0 votes)
482 views

12.smartform Passing Data From Driver Program To Smartform Interface

This document outlines 18 steps to pass data from a driver program to a Smartform interface in SAP. It involves creating a Smartform, adding a table to store passed data, defining a structure to hold the table, creating a loop to display the data, calling the Smartform function module from the driver program, and printing the output Smartform. The driver program passes table data to the Smartform interface, which then displays the data on the generated form.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
482 views

12.smartform Passing Data From Driver Program To Smartform Interface

This document outlines 18 steps to pass data from a driver program to a Smartform interface in SAP. It involves creating a Smartform, adding a table to store passed data, defining a structure to hold the table, creating a loop to display the data, calling the Smartform function module from the driver program, and printing the output Smartform. The driver program passes table data to the Smartform interface, which then displays the data on the generated form.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

12.

Smartform : Passing data from driver program to Smartform interface


-----------------------------------------------------------------------------------------------------------------------------Step1. Go to Tx- SMARTFORMS

[http://4.bp.blogspot.com/-DHLCobveXM4/VTZsG8SvKjI/AAAAAAAAQIY/-V2YaKepiKs/s1600/1.png]

Step2. Provide a smartform name and click on create button.

[http://2.bp.blogspot.com/-na6ZCop0rQE/VTZsj-P5N4I/AAAAAAAAQJk/T75dGl-9tzc/s1600/2.png]

Step3. Click on form interface.

Step4. Click on tables Tab.

[http://4.bp.blogspot.com/-jeB56KFXp3o/VTZsmivC9RI/AAAAAAAAQKA/VezsKaU0giE/s1600/3.png]

[http://3.bp.blogspot.com/-d0pCOo3rq7c/VTZssHF3iyI/AAAAAAAAQKI/O8mIt_pH7HE/s1600/4.png]

Step5. Provides a name. This table record has to be passed from the driver program while calling the
smartform function module.

[http://2.bp.blogspot.com/-YMHAHu2rkMg/VTZsvgjs_rI/AAAAAAAAQKQ/GsMHPLSSOzs/s1600/5.png]

Step6. Now click on Global Definitions and provide a structure LS.

Step7. Now create a flow logic->loop under the Main window.

[http://3.bp.blogspot.com/-nPCuGmfMbiE/VTZswge_xQI/AAAAAAAAQKY/y6se6P3ba40/s1600/6.png]

[http://1.bp.blogspot.com/-RHJ8FTwl85w/VTZswnx94sI/AAAAAAAAQKc/PWkwjHqP1DE/s1600/7.png]

Step8. Provide the table name and the work area name.

[http://1.bp.blogspot.com/-4jlfkhibKZM/VTZs0QmIM_I/AAAAAAAAQKo/tYbayyuw2mA/s1600/8.png]

Step9. Create a text under the loop.

[http://3.bp.blogspot.com/-O-zg-NfPDw8/VTZs13y9pGI/AAAAAAAAQKw/q4RyzyoNwW4/s1600/9.png]

Step10. The below screen appears.

[http://3.bp.blogspot.com/-EB_yZwHYtrk/VTZsORSfCQI/AAAAAAAAQIg/pohNFeP5RXQ/s1600/10.png]

Step11. Provide the place holders.

Step12. Similarly some place holders and then from the Environment get the Function module name.

[http://4.bp.blogspot.com/-Wuirf1ZLtKg/VTZsPfhbHvI/AAAAAAAAQIo/Oiv6oiQR86w/s1600/11.png]

[http://2.bp.blogspot.com/-dCakqgIydQo/VTZsfp2Ze-I/AAAAAAAAQI8/agoV45O_YkY/s1600/14.png]

Step13. Below is the function module name. Activate the smartform.

Step14. Create a report program. From the pattern call the smartform function module name.

[http://4.bp.blogspot.com/-zin7C3TPXMA/VTZsgTarM2I/AAAAAAAAQJE/Qa8Pcnn6XU8/s1600/15.png]

[http://4.bp.blogspot.com/-YFcdV_X2QT8/VTZsh3dgKdI/AAAAAAAAQJQ/fMsamBnXJVQ/s1600/16.png]

Step15. Here we have the FLIGHT table as part of the function module interface. Change the function
module name.

Step16. Activate the program and Execute the program.

[http://1.bp.blogspot.com/-4icsq_cwLnw/VTZsh1xi1wI/AAAAAAAAQJU/FfFJSwstfHw/s1600/17.png]

Step17. Click on print preview.

[http://3.bp.blogspot.com/-l2xwyszIw8M/VTZsi7E6cyI/AAAAAAAAQJc/AhyLoKLB47Q/s1600/18.png]

Step18. Here we have the smartform output.

[http://2.bp.blogspot.com/-e8UcEjI4pFU/VTZskTeBCnI/AAAAAAAAQJw/ML0CJNVN96o/s1600/19.png]

-----------------------------------------------------------------------------------------------------------------------------

[http://1.bp.blogspot.com/-n-To3EK4wjo/VTZsl-7bZ6I/AAAAAAAAQJ4/ZxAfgQMVxF0/s1600/20.png]

Posted 21st April by S Prasad


View comments

You might also like