Documentos de Académico
Documentos de Profesional
Documentos de Cultura
com
ScenarioPurchaseorderdatatobedisplayedintheALVtreeoutput. 1) Createaprogramwiththefollowingattributes
2) Thecodefortheprogramisinthisobjectattachment.
3) Thisfollowingscreenshotshowsthestructureoftheprograminse80.Ithasascreeninwhich thetreeisdisplayedandthenithasaGUIstatusandallotherdictionarystructures.
www.FreeSAPTutorial.com
www.FreeSAPTutorial.com
4) Thestartofselctioneventcontainsthedataretrievalprocess.Afterthedataselectionprocessis done,thescreen100iscalled.
5) Thescreenhasthefollowingcodeinit.
www.FreeSAPTutorial.com
www.FreeSAPTutorial.com
6) Inthelayoutofthescreen,buildacontainerelementwiththenameSCREEN_CONTAINER.
www.FreeSAPTutorial.com
www.FreeSAPTutorial.com
7) Afterthatmakesurethescreenhasthestatusbarandinthestatusbar,gotoextrasAdjust templateasshowninthebelowscreen.
8) WegetthefollowingpopupandwegetthestandardFcodesfortheimportantfunctionalities andbydefault.
9) Thescreenhasthefollowingcode
www.FreeSAPTutorial.com
www.FreeSAPTutorial.com
10) Inthepbo,thefollowingcodeisexecuted.
11) Thestatuswhendoubleclicked,goesinthescreenshowedinstep7andthePFstatusis developedinsteps7and8 12) Nowtheobjectgd_custom_containeriscreatedasaninstanceoftheclass cl_gui_custom_containerandthecontainerSCREEN_CONTAINER(createdinthescreen1000)is passedintoit. 13) Similarlyandobjectoftheinstancecl_gui_alv_treeiscreatedandispassedwiththeparameter gd_custom_containerthatiscreatedinthestep12.Alsoanotherparameternodehastobe passed.Seethefollowingcode
www.FreeSAPTutorial.com
www.FreeSAPTutorial.com
create object gd_tree exporting parent = gd_custom_container node_selection_mode = cl_gui_column_tree=>node_sel_mode_single
14) Themethodoftheobjectiscallednow.
call method gd_tree->set_table_for_first_display
16) Executethereport.WEgetthefollowingoutput.
17) WhenexpandedwecanseethelineiitemdetailsofthePO
www.FreeSAPTutorial.com
www.FreeSAPTutorial.com
www.FreeSAPTutorial.com