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 is the Difference between At Line selection and At user-command?
How to convert normal function module to bapi?
Difference between sy-tabix and sy-index? Where it is used? Can you check sy-subarc after perform?
What is pretty printer?
Explain what is sap script?
What is an interactive report? What is the obvious difference of such report compared with classical type reports?
How can we create callable modules of program code within one abap/4 program?
What are the types of the software component being deployed in the sap?
How will you define posting procedures?
What is your approach to find exit and BAdi?
What is tcode se16. For what is it used. Explain briefly?
From Excel to ABAP - Is batch mode possible ?
What is match code? : sap abap hr
What is the difference b/t Session method and call transaction method ??
What does an exec sql statement do in abap? What is the disadvantage of using it?