Select For All Entries using ABAP 7.4


Using Select For all entries OPEN SQL with ABAP 7.4


Example program using Select for all entries with ABAP 7.4.

DATA(lv_mtart) = 'FERT'.

 SELECT MATNR
   FROM MARA
   INTO TABLE @DATA(it_matnr)
   WHERE mtart = @lv_mtart.
IF it_matnr is NOT INITIAL.

SELECT *
  FROM MAKT
  into TABLE @DATA(it_makt)
  FOR ALL ENTRIES IN @IT_MATNR
  WHERE MATNR = @it_matnr-matnr.
ENDIF.

LOOP AT it_makt INTO DATA(wa_makt).
WRITE :/ wa_makt-matnr, wa_makt-maktx, wa_makt-spras.
ENDLOOP.


Learner Questions

No Questions by learners, be first one to ask ..!!

    Please Sign in to ask a question


    Was this lesson helpful to you? Yes No 0 People out of 0 think this lesson helpful

    Lesson Navigation

    ←Previous Chapter
    Next Chapter →