03-04-2011 10:59 AM
Hi all ,
In ECC 6.0 , i want to create a dynamic screen .
Requirement is as follows :
I will maintaining a Z table which will contain Program Name (Zreport1 , zreport2 , zreport3 , etc ) all with a common selection parameter PAYROLL AREA . Now , the selection screen of the new program needs to be such that if I maintain Zreport 1 and 2 in this Z table , then Report 1 and report2 description and the payroll area should come in sel screen
eg
THIS IS REPORT 1
Payroll Area : ____________
This is REPORT 2
PAYROLL AREA ...
Thus the sel screen of the new program should differ based on the Z table entires .
Pls lemme know suggestions on the same
03-04-2011 11:02 AM
You can handle the same in AT INITIALIZATION event. Here check for entries in Z table and set the text .
03-04-2011 11:24 AM
Hi Supriya,
This can be done in the event AT_SELECTION_SCREEN_OUTPUT.
Regards
Hareesh
03-04-2011 11:35 AM
Hi,
AT Initialization event will work for you.
Just fetch the data from the table , read it with index1 and use the Write Statement to display it.
Thats all.
Thanks
Arbind
03-04-2011 11:51 AM
hI ,
But in this case , how will i specify the selection screen initially .
Also , my DB may have any number of records , so how can i change the text dynamically if initially i specify on selected number of user inputs ?
Thanks
03-04-2011 12:08 PM
Hi Supriya,
You can check the below URL, it may help you.
http://wiki.sdn.sap.com/wiki/display/Snippets/ABAPProgramtogenerateselect-options+dynamically.
Seee that if you can try of LDB.
Thanks
Arbind
03-04-2011 11:55 AM
What I understood that you need to create dynamic selection screen based on the entries of some table.
I haven't come across with such requirement, but may be below link will be helpful to you
http://help.sap.com/SAPhelp_nw04/helpdata/en/67/93b80914a911d2953c0000e8353423/content.htm
05-30-2011 8:57 AM