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

PO Smartform

The document provides steps to create a simple smart form in SAP that displays purchase order header and item details. It involves defining global parameters and variables, initializing output parameters, creating loops to display the header and item data, and linking pages to display the full output. The key steps are: 1) Create and name the smart form, 2) Define global parameters and variables to access and store PO data, 3) Initialize output parameters and write logic to load data, 4) Create loops to display header and item information, 5) Link pages to fully output the purchase order details.

Uploaded by

jackoduor
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
288 views

PO Smartform

The document provides steps to create a simple smart form in SAP that displays purchase order header and item details. It involves defining global parameters and variables, initializing output parameters, creating loops to display the header and item data, and linking pages to display the full output. The key steps are: 1) Create and name the smart form, 2) Define global parameters and variables to access and store PO data, 3) Initialize output parameters and write logic to load data, 4) Create loops to display header and item information, 5) Link pages to fully output the purchase order details.

Uploaded by

jackoduor
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

http://www.FreeSAPTutorial.com ScenariosimplersmartformwhichdisplaysthePOheaderandItemleveldetails. 1) Gotosmartformstcodeandgivethenameofthesmartformthatistobecreated.

2) Saveitaftergivingitameaningfulname.

http://www.FreeSAPTutorial.com

http://www.FreeSAPTutorial.com 3) Executeit,youcanseeafunctionmodulegenerated.

4) Whenweexecutethisfunctionmodulewecanseethefollowingscreen.Aswedidnotdefine andcustominterfaceparametersyet,itdoesnotappearinthisscreen.Ifwedefineanysuch parameters,itwillappearinthisscreen.

http://www.FreeSAPTutorial.com

http://www.FreeSAPTutorial.com 5) Whenweexecuteit,itasksforaoutputdevice,enterLOCLandclickontheprintpreview.

6) Wegetanemptyscreenasthereisnodataflowintotheformandnologictodisplayanything. 7) Nowgobacktothesmartformanddoubleclickontheglobaldefinitions. 8) Oncewedefineanyparametershere,wecanusethemthroughouttheformforanyoperations. 9) Inthetypestab,enterthefollowingcode

http://www.FreeSAPTutorial.com

http://www.FreeSAPTutorial.com

10) NowgotoGlobalDatatabanddeclarethefollowingvariablesaswewanttoprintthepurchase orderdata

11) Nowintheinitializationtab,entertheoutputparametersasit_ekpoandit_ekko.Alsowritethe logicinthescreenprovidedasshownbelow.

http://www.FreeSAPTutorial.com

http://www.FreeSAPTutorial.com

12) Nowthedatawillbeavailableintheinternaltableit_ekkoandit_ekpo. 13) RightclickontheMainwindowinthepage1andfollowthepathasshownbelow.

http://www.FreeSAPTutorial.com

http://www.FreeSAPTutorial.com

14) Yougetthefollowingscreenandenterthefollowingdataasshown.

Whenyoudoubleclickonthe%TEXT1thatiscreatedautomatically,yougetthefollowingscreen.

http://www.FreeSAPTutorial.com

http://www.FreeSAPTutorial.com

Thefieldabovecanbeaddedbyclickingonthefollowingbutton. Onclickingthisbuttonwegetthispopupandwehavetogivethedatawith&atthebeginningandend.

15) NowtheloopIscreatedfortheheaderdata. 16) WewillnowprinttheitemleveldataforthePO.Clickonthetablebuttonbyfollowingthepath asshownbelow.

http://www.FreeSAPTutorial.com

http://www.FreeSAPTutorial.com Thescreenlookslikethis

Everytablehasaheader,mainareaandafooter.Differentdatacanbeprintedbasedonthe requirement. Themainareawillberepeatedherefortheitemleveldata.Wecanalsosplitthelinethatcomesby default.%LTYPE1.Theprocessisshownbelow

Allwehavetodoisrightclickontherowandclickoncellfollowingtheabovepath.

http://www.FreeSAPTutorial.com

http://www.FreeSAPTutorial.com

Rightclickonthecellandcreateatext.Insidethetextenterthefollowingdataasdoneinsidetheloop. HerewearedisplayingonthePOnumberandthelineitemnumberintheoutput. 17) Createacommandline

http://www.FreeSAPTutorial.com

http://www.FreeSAPTutorial.com 18) Inthecommandline,youcanselectthenextpagethathastobetriggeredwhenthispresent pageisfilled.

19) Executethesmartformasshowninthesteps15andyouseetheoutputlikethisforthisform.

http://www.FreeSAPTutorial.com

You might also like