POPUP_TO_DECIDE_WITH_MESSAGE

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

通过 Function Module 弹出窗口,35char×6行提示用户信息,返回用户选择。
所属 Function Group : SPO2
所属 Package : SZP

DATA:answer TYPE c LENGTH 1.

CALL FUNCTION ‘POPUP_TO_DECIDE_WITH_MESSAGE’
  EXPORTING
   defaultoption           = ’1′
    diagnosetext1           = ‘diagnose text1′"max 35 char
   diagnosetext2           = ‘diagnose text2 ‘
   diagnosetext3           = ‘diagnose text3′
    textline1               = ‘text line1′"max 35 char
   textline2               = ‘text line2′
   textline3               = ‘text line2′
    text_option1            = ‘option1 text’
    text_option2            = ‘option2 text’
   icon_text_option1       = ‘ICON_SYSTEM_SAVE’
*   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、该函数已过期


原创粉丝点击