POPUP_TO_CONFIRM
通過 Function Module 彈出窗口,提示信息,并獲得用戶選項值
所屬 Function Group : SPO1
所屬 Package : SZP
DATA:answer TYPE c LENGTH 1.
CALL FUNCTION ‘POPUP_TO_CONFIRM’
? EXPORTING
?? titlebar??????????????????? = ‘This is title’
*?? DIAGNOSE_OBJECT???????????? = ‘ ‘
??? text_question?????????????? = ’8 + 8 = ?’
?? text_button_1?????????????? = ‘Ja’(001)
*?? ICON_BUTTON_1?????????????? = ”
*?? TEXT_BUTTON_2?????????????? = ‘Nein’(002)
?? icon_button_2?????????????? = ‘ICON_HISTORY’ "name in table ICON
?? default_button????????????? = ’2′"default focus
?? display_cancel_button?????? = ”"no cancel
*?? USERDEFINED_F1_HELP???????? = ‘ ‘
?? start_column??????????????? = 1 "position
?? start_row?????????????????? = 1
"type ICON-NAME
?? popup_type????????????????? = ‘ICON_MESSAGE_INFORMATION’
?? iv_quickinfo_button_1?????? = ‘button 1 quick info’
*?? IV_QUICKINFO_BUTTON_2?????? = ‘ ‘
?IMPORTING
?? answer????????????????????? = answer "Return values: ’1′, ’2′, ‘A’
* TABLES
*?? PARAMETER?????????????????? =
?EXCEPTIONS
?? text_not_found????????????? = 1
?? OTHERS????????????????????? = 2
????????? .
IF sy-subrc <> 0.
? MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
????????? WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
結果:(效果圖)
————
注意:暫無
總結
以上是生活随笔為你收集整理的POPUP_TO_CONFIRM的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: TIME_CHECK_PLAUSIBIL
- 下一篇: POPUP_TO_CONFIRM_LOS