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
Explain the advantages and disadvantages of different types of bdc's?
Define abap/4 layer? : abap data dictionary
How do you delete duplicate records from internal table?
What are dml commands in abap?
Name the abap/4 modularization techniques? : abap modularization
What are the basic objects of the data dictionary?
how can we enable hyperlink in screen painter?
Table events aNd table maintains generation
What is meant by payscale structure? How did you configure pay scale structure? : sap abap hr
how to capture the errors in bdc Call transaction method?
What does the insert statement in extract datasets do?
Define external layer? : abap data dictionary
Define batch input session?
What are the system fields?
State the differences between database view & projection view? : abap data dictionary