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

How to create the selection screen dynamically

Former Member
0 Likes
612

Hi,

I have a requirement to create the selection screen Dynamically. All the fields that should appear on the selection screen will be available in a custom table. So, based on the entries available in the Z tables, the selection screen should be built. Eg. If there are 10 records available in the Z table, the selection screen should consist of 10 fields. If there are 100 entries, the Selection screen should contain 100 fields. and the logic to build this selection screen should be carried out dynamically in the program.

Could anyone of you please share the valuable inputs on this. If anyone has the sample code to do this, please share.

Thanks in advance.

Regards,

Paddu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
569

Hi,

Kindly go through this sample program below:

  • DEMO_LIST_FORMAT_INPUT *and

check this function module:

  • FREE_SELECTIONS_DIALOG *.

Hope it helps

Regards

Mansi

4 REPLIES 4
Read only

Former Member
0 Likes
569

search in sdn before posting

Read only

Former Member
0 Likes
570

Hi,

Kindly go through this sample program below:

  • DEMO_LIST_FORMAT_INPUT *and

check this function module:

  • FREE_SELECTIONS_DIALOG *.

Hope it helps

Regards

Mansi

Read only

Former Member
0 Likes
569

HI,

Refer to this link ..https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/dynamicSelectionScreensbasedonuserinputs

Read only

andrea_galluccio2
Contributor
0 Likes
569

Hi,

just a quick suggestion.

Debug the standard transaction code SE16. It designs the selection screen dinamically based on the fields that you choose. With a very quick debug, seems that the transaction generates a program using some define routines.

With some patient, you can use its to design your screen.

Best regards

Andrea