当用户双击ALV报告中的行时获取行ID

时间:2018-02-13 12:43:52

标签: sap abap alv

我有一个场景,我必须点击购买文档否,只有它的具体细节会在弹出窗口中显示例如netpr在弹出窗口我该怎么办?

FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE r_ucomm.
    WHEN '&IC1'.

      READ TABLE ITAB INTO WA WITH KEY EBELN = WA-EBELN.
      PERFORM popup_display.

    ENDCASE.
ENDFORM.                    "user_command

1 个答案:

答案 0 :(得分:3)

结构<T> T get(String question, Class<T> type) throws InputException;中的子程序内部是你需要的:

字段RS_SELFIELD包含双击的行(TABINDEX),字段you can READ TABLE the internal table which holds the data with INDEX rs_selfield-tabindex包含已单击的字段(FIELDNAME)。

另请查看功能模块if that is relevant in your case的文档,其中包含大量有用信息SE37 => Function Module Documentation