消息消息集弹窗
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = '错误消息'
i_selection = 'X'
* I_ALLOW_NO_SELECTION =
* i_zebra = 'X'
* i_screen_start_column = 20
* i_screen_start_line = 15
* i_screen_end_column = 100
* i_screen_end_line = 35
* I_CHECKBOX_FIELDNAME =
* I_LINEMARK_FIELDNAME =
* I_SCROLL_TO_SEL_LINE = 'X'
i_tabname = space
* I_STRUCTURE_NAME =
it_fieldcat = lt_fcat
* IT_EXCLUDING =
* I_CALLBACK_PROGRAM =
* I_CALLBACK_USER_COMMAND =
* IS_PRIVATE =
* IMPORTING
* ES_SELFIELD =
* E_EXIT =
TABLES
t_outtab = ut_msg[]
* EXCEPTIONS
* PROGRAM_ERROR = 1
* OTHERS = 2
.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
弹出确认窗口实例
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
text_question = p_msg "提示消息
icon_button_1 = '是' "是
icon_button_2 = '否' "否
default_button = '2'
display_cancel_button = 'X'
start_column = 25
start_row = 6
IMPORTING
answer = p_answer
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
以下转载下其它确认消息等弹窗