2006 Oct 20 4:15 PM
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
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
2006 Oct 20 4:20 PM
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
2006 Oct 20 4:23 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |