- Select-Options keyword provides user to input range of values.
- It has components of standard structure RSDSSELOPT.
- Components of Select-Options.
- Sign :- 'I' ->Include , 'E' ->Exclude.
- Option :- LE-> less than and equal to , BT->Between , GE-> Greater than and Equal etc,
- Low :- Lower Limit
- High :- Higher Limit
- Select-Option : <select_variable > for <work_area-fieldname>.
- select_variable acts like internal table with header line.
- Go to transaction code SE38.
- Enter the program name Z or Y<program name>.
- Select attribute type as Executable program.
- Click on Save.
DATA : IT_MAKT TYPE TABLE OF MAKT,
WA_MAKT TYPE MAKT.
SELECT-OPTIONS : S_MATNR FOR WA_MAKT-MATNR.
SELECT * FROM MAKT INTO TABLE IT_MAKT WHERE MATNR IN S_MATNR.
LOOP AT IT_MAKT INTO WA_MAKT.
WRITE : / WA_MAKT-MATNR , WA_MAKT-SPRAS , WA_MAKT-MAKTX.
ENDLOOP.
WA_MAKT TYPE MAKT.
SELECT-OPTIONS : S_MATNR FOR WA_MAKT-MATNR.
SELECT * FROM MAKT INTO TABLE IT_MAKT WHERE MATNR IN S_MATNR.
LOOP AT IT_MAKT INTO WA_MAKT.
WRITE : / WA_MAKT-MATNR , WA_MAKT-SPRAS , WA_MAKT-MAKTX.
ENDLOOP.
Serkan AKKAVAK
Computer Engineer
SAP Department Deputy Manager
Contact : serkurumsal@yandex.com
0 Comments