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
any 1 having notes on SAP-ABAP certification, or even if any 1 could provide the url for getting notes on SAP-ABAP certification, would be appreciated.
How do you display a data in a detail list?
How to eliminate duplicate entries in internal tables?
Why bapi need then bdc ? : abap bdc
Can anyone done BDC/LSMW/BAPI for F-02 and F-04.If yes let me know the processs
What are the aggregate objects in the dictionary? : abap data dictionary
WHAT ARE THE INPUT PARAMETERS TO BE PASSED FOR THE BAPIS 'BAPI_CUSTMATINFO_GETDETAILM' AND 'BAPI_CUSTMATINFO_GETLIST'
What is asap methodology? : sap abap hr
How to combine multiple billing into one RV document ( Step by Step)?
How do you execute the payroll
Explain what are interactive reports?
What are table clusters?
What is the difference between call transaction and session method? : abap bdc
Explain the structure of a bdc sessions?
What is the lock object?