SAP:创建对话框(ALV弹出对话框)

1.创建子屏幕对话框:
SAP:创建对话框(ALV弹出对话框)_第1张图片

2.ALV函数中加入调用代码:
CALL SCREEN 100 STARTING AT 5 5 ENDING AT 50 20 .

FORM frm_user_command USING r_ucomm LIKE sy-ucomm
                       rs_selfield TYPE slis_selfield.
  DATA:lo_alv TYPE REF TO  cl_gui_alv_grid.

  CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
      e_grid = lo_alv.

  IF NOT lo_alv IS INITIAL.
    CALL METHOD lo_alv->check_changed_data.
  ENDIF.

  CASE r_ucomm.
*    WHEN 'ZDEAL'.
*      DATA: it_value  TYPE TABLE OF sval,
*
*            wa_value  TYPE sval,
*
*            lv_rtn_cd.
*
*      CLEAR:it_value,wa_value,lv_rtn_cd.
*
*        wa_value-tabname = 'MSEG'.
*        wa_value-fieldname = 'BUDAT

你可能感兴趣的:(ABAP学习,ALV中嵌入子屏幕)