how to fill the select options from an internal table
dynamically ie can i use the loop in the initialization
Answer Posted / tamseel hashmi
TABLES : mara.
DATA : BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr,
END OF itab.
SELECT-OPTIONS: s_matnr FOR mara-matnr NO INTERVALS.
INITIALIZATION.
CLEAR : itab,
s_matnr.
REFRESH : itab,
s_matnr.
SELECT matnr
INTO TABLE itab
FROM mara
WHERE meins EQ 'CS'.
* fill select option.
LOOP AT itab.
s_matnr-low = itab-matnr.
s_matnr-sign = 'I'.
s_matnr-option = 'EQ'.
APPEND s_matnr.
ENDLOOP.
start-of-selection.
Is This Answer Correct ? | 15 Yes | 5 No |
Post New Answer View All Answers
What does the extract statement do in extract datasets?
What are table clusters?
What is at exit-command:?
What are the page windows? How many main windows will be there in a page window?
What are the three hierarchical levels of data types and objects?
What is the first thing you do after vendor setup is complete?
What will happen when we use fully buffered in abap?
What is the collect statement?
Differentiate between report and dialog program
How do you delete duplicate records from internal table?
How to set an Enhancement point for a custom report?
What are client dependant objects in abap/sap?
Does every abap/4 have a modular structure? : abap modularization
Where do you create indexes in abap?
Why is pretty printer user in abap?