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
Can you print decimals in type n? What is difference between float and packed data type?
What is macro? : abap hr
What are the basic objects of the data dictionary?
How do you backup Sapscript layout sets? Can you download and upload? How?
How to add a column to a table control while using alphanumerical layout editor ?
What are the control break events in abap? : abap data dictionary
What is time constraint ? : abap hr
What is an abap/4 query? : abap hr
What are logical databases? : abap hr
What are the client dependant objects in abap / sap?
Can a transparent table exist in the data dictionary but not in the database physically?
How many types of tables exists and what are they in data dictionary? : abap data dictionary
Explain what is the significance of hide?
How to specify a client for database table processing?
What are Tickets in Realtime ?