How to write read statement inside loop table based on index using 7.4+ syntax

Hello friends, One of my program I created one custom button using toolbar function. So based on the selection records I want to process BAPI FM. For that I’m trying to learn code using 7.4 syntax.

LOOP AT lt_selected_rows INTO ls_selected_line.


    lv_index ls_selected_lineindex.

    READ TABLE gt_mara INDEX lv_index INTO ls_mara.

    PERFORM  BAPI.  


  ENDLOOP.

how to convert this code in ABAP 7.4

Your answer will be more helpful for my learning journey.

 

 

Scroll to Top