代码语言:javascript复制
*选择屏幕
SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME TITLE text-001.
PARAMETERS: p_date TYPE isellist-month,
SELECTION-SCREEN END OF BLOCK blk .
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_date.
PERFORM select_data.
*&---------------------------------------------------------------------*
*& Form SELECT_DATA
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM select_data .
CALL FUNCTION 'POPUP_TO_SELECT_MONTH'
EXPORTING
actual_month = sy-datum 0(6)
IMPORTING
selected_month = p_date. "传入参数值
IF sy-subrc <> 0.
ENDIF.
ENDFORM. " SELECT_DATA
实现月份的F4