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 dynamically generate parameters based on dropdown?

Former Member
0 Likes
647

Hello,

newbie ABAPer question..

I was wondering if it's possible to dynamically create a UI based on the values on a drop list/drop down box?

For example, screen would initialize too

dropdown list filled with 1 - 50

field1 field2

user selects 10 from the drop down list, then the screen would look like this:

drop down list dropdown list filled with 1 - 50

field1 field2

field3 field4

field5 field6

field7 field8

field9 field10

field11 field12

field13 field14

field15 field16

field17 field18

field19 field20

thanks for looking!

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
594

If you don't have too many parameters, you may also declare all of them, and hide or show the ones you desire using LOOP AT SCREEN statement according to the entry selected in the dropdown listbox. This is simple and efficient. How many parameters do you have?

Hello,

newbie ABAPer question..

I was wondering if it's possible to dynamically create a UI based on the values on a drop list/drop down box?

For example, screen would initialize too

dropdown list filled with 1 - 50

field1 field2

user selects 10 from the drop down list, then the screen would look like this:

drop down list dropdown list filled with 1 - 50

field1 field2

field3 field4

field5 field6

field7 field8

field9 field10

field11 field12

field13 field14

field15 field16

field17 field18

field19 field20

thanks for looking!

4 REPLIES 4
Read only

former_member194669
Active Contributor
0 Likes
594

Please check demo program

RSDEMO_DROPDOWN_LISTBOX

Read only

0 Likes
594

this seems to only show how to create a dropdown list...I need to know how to create parameters based on the values in the drop down list

Read only

0 Likes
594

Then you need to use fm

FREE_SELECTIONS_DIALOG

for dynamically generating the selection parameters screen.

Please make a search on this forum for sample code how to use this

Read only

Sandra_Rossi
Active Contributor
0 Likes
595

If you don't have too many parameters, you may also declare all of them, and hide or show the ones you desire using LOOP AT SCREEN statement according to the entry selected in the dropdown listbox. This is simple and efficient. How many parameters do you have?