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 are the organizational related infotypes? : abap hr
Have you printed any report?
Explain the different types of screen keywords?
What are the Control levels in internal tables?
Differentiate between ooabap and abap?
What is the use of f4if_shlp_exit_example function module ? : sap abap data dictionary
What are the types of subroutines? : abap modularization
How can end-of-selection be used?
What are table clusters?
Type casting and error handling
Difference between function group and function module?
What is the difference between tables and structures?
2)In production what is the user exit?
Where can you find error log for call transaction? : abap bdc
What do you mean by transparent tables in sap abap? : abap data dictionary