Application Development and Automation 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: 
Read only

Dynamic Selection Screen ABAP

Former Member
0 Likes
971

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
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
912

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

Read only

Former Member
0 Likes
912

Hi Supriya,

This can be done in the event AT_SELECTION_SCREEN_OUTPUT.

Regards

Hareesh

Read only

Former Member
0 Likes
912

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

Read only

Former Member
0 Likes
912

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

Read only

0 Likes
912

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

Read only

prasoon_sahay
Participant
0 Likes
912

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

Read only

Former Member
0 Likes
912

Requirement scrapped