* - ALV first displayed
FORM DIS_MM .
ADD_ALV_EVENTS '2' 'CALL_SO' . "Double-click to add an event, call CALL_SO
DISPLAY_ALV IMM_TAB 'Material' .
EndForm .
* Double-click on the contents of incident response
FORM CALL_SO the USING I_ROW
I_COLUMN .
The READ TABLE IMM_TAB INTO IMM I_ROW the INDEX .
the IF SY -SUBRC = 0 the AND I_COLUMN = 'MATNR' .
the CLEAR ISO_TAB .
the SELECT P ~ P MATNR ~ VBELN D ~ BSTKD K ~ K AUART ~ VKORG P ~ P POSNR~WAERK D~ZTERM
INTO CORRESPONDING FIELDS OF TABLE ISO_TAB
FROM VBAP AS P
INNER JOIN VBKD AS D ON P~VBELN = D~VBELN
INNER JOIN VBAK AS K ON P~VBELN = K~VBELN
WHERE MATNR = IMM-MATNR.
SET_POPUP_SIZE 20 120 7 27.
DISPLAY_ALV ISO_TAB 'Sales Order'.
ENDIF.
ENDFORM.
SALV double-click events, corresponding to another SALV
Guess you like
Origin www.cnblogs.com/zuoting-haoxue/p/12200781.html
Ranking