REPORT  ZSELECT_OPTIONS1                        .

DATA: ITAB LIKE MARD OCCURS 1 WITH HEADER LINE.



SELECT-OPTIONS: S_MATNR FOR ITAB-MATNR.



LOOP AT S_MATNR.

  WRITE:/ S_MATNR-SIGN,

          S_MATNR-OPTION,

          S_MATNR-LOW,

          S_MATNR-HIGH.

ENDLOOP.

REPORT  ZSELECT_OPTIONS2.



DATA: ITAB LIKE MARD OCCURS 1 WITH HEADER LINE.



SELECT-OPTIONS: S_MATNR FOR ITAB-MATNR.



SELECT *

  FROM MARD

  INTO TABLE ITAB

  WHERE MATNR IN S_MATNR.



LOOP AT ITAB.

  WRITE:/ ITAB-MATNR,

          ITAB-WERKS,

          ITAB-LABST.

  ENDLoOP.

REPORT  ZSELECT_OPTIONS3.

DATA: ITAB LIKE MARD OCCURS 1 WITH HEADER LINE.
PARAMETERS: P_MATNR LIKE ITAB-MATNR.

SELECT *

  FROM MARD

  INTO TABLE ITAB

  WHERE MATNR = P_MATNR.



LOOP AT ITAB.

  WRITE:/ ITAB-MATNR,

          ITAB-WERKS,

          ITAB-LABST.

  ENDLoOP.








Serkan AKKAVAK
Bilgisayar Mühendisi
serkurumsal@yandex.com