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

Need to populate select options dynamically

Former Member
0 Likes
1,087

Hi,

I got the requirement as below.

On the std. selection screen, i have a list box and if I select any of the values from the listbox, i will populate an internal table with some records.

Now if the internal table which I had populated got say 5 records, i have to populate five select-options on the same std selection screen itself (below the list box parameter).

How to achieve this?

Thanks in adv.

Regards,

Sookshma

Hi,

I got the requirement as below.

On the std. selection screen, i have a list box and if I select any of the values from the listbox, i will populate an internal table with some records.

Now if the internal table which I had populated got say 5 records, i have to populate five select-options on the same std selection screen itself (below the list box parameter).

How to achieve this?

Thanks in adv.

Regards,

Sookshma

2 REPLIES 2
Read only

Former Member
0 Likes
422

Hi,

Example of populating select-options.

SELECT-OPTIONS SO_MATNR FOR MARA-MATNR.

SO_MATNR-SIGN = 'I'.

SO_MATNR-OPTION = 'EQ'.

SO_MATNR-LOW = '12345667809'.

APPEND S0_MATNR.

Thanks,

Naren

Read only

Former Member
0 Likes
422

Hi

You can try to transfer the data in AT SELECTION-SCREEN event.

AT SELECTION-SCREEN.

DESCRIBE TABLE SEL_OPT_1 LINES SY-TABIX.

IF SY-TABIX > 0.

REFRESH SEL_OPT_2.

LOOP AT SEL_OPT1.

MOVE-CORRESPONDING SEL_OPT1 TO SEL_OPT_2.

APPEND SEL_OPT_2.

ENDLOOP.

ENDIF.

U can use that code to fill the other select-options, but how to fill them depends on what you need to do.

U should give us more details.

Max