REPORT ZALV_STR. TABLES: MARA. DATA : IT_MARA TYPE TABLE OF MARA . SELECT-OPTIONS : S_MATNR FOR MARA-MATNR. START-OF-SELECTION . PERFORM GET_MARA_DATA . "Double click to create below form END-OF-SELECTION . PERFORM DISP_MARA_ALV . "Double click to create below form *&---------------------------------------------------------------------* *& Form GET_MARA_DATA *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* FORM GET_MARA_DATA . SELECT * FROM MARA INTO TABLE IT_MARA WHERE MATNR IN S_MATNR . ENDFORM. " GET__MARA_DATA *&---------------------------------------------------------------------* *& Form DISP_MARA_ALV *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* FORM DISP_MARA_ALV . CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = SY-REPID I_STRUCTURE_NAME = 'MARA' TABLES T_OUTTAB = IT_MARA. ENDFORM. " DISP_MARA_ALV
Serkan AKKAVAK Computer Engineer ABAP Developer & SAP MM SD Consultant Contact : serkurumsal@yandex.com
Social Plugin