POPUP_TO_DECIDE

来源:互联网 发布:韶关网络布线公司 编辑:程序博客网 时间:2024/06/05 07:21

通过 Function Module 弹出窗口提示信息后返回用户选择。
所属 Function Group : SPO2
所属 Package : SZP

DATA:answer TYPE c LENGTH 1.

CALL FUNCTION ‘POPUP_TO_DECIDE’
  EXPORTING
   defaultoption           = ’2′
    textline1               = ‘textline1′"max 35 char
   textline2               = ‘textline2′
   textline3               = ‘textline3′
    text_option1            = ‘option1 text’
    text_option2            = ‘option2 text’
   icon_text_option1       = ‘ICON_SYSTEM_SAVE’"ICON-NAME
*   ICON_TEXT_OPTION2       = ‘ ‘
    titel                   = ‘title’
   start_column            = 25
   start_row               = 6
   cancel_display          = ‘X’
 IMPORTING
   answer                  = answer
          .

CASE answer.
  WHEN ‘A’.
  WHEN ’1′.
  WHEN ’2′.
ENDCASE.
*The end-user’s decision is returned in ANSWER. ANSWER can contain the
*following values:
"A" = user has chosen Cancel
"1" = user has chosen the first alternative
"2" = user has chosen the second alternative

结果:
点击可看大图
————
注意:
1、该函数已过期