Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Selection Screen ABAP

Former Member
0 Kudos

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

7 REPLIES 7

Sandeep_Kumar
Advisor
Advisor
0 Kudos

You can handle the same in AT INITIALIZATION event. Here check for entries in Z table and set the text .

Former Member
0 Kudos

Hi Supriya,

This can be done in the event AT_SELECTION_SCREEN_OUTPUT.

Regards

Hareesh

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

prasoon_sahay
Participant
0 Kudos

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

Former Member
0 Kudos

Requirement scrapped