现在的位置: 首页 > 综合 > 正文

POPUP_TO_DECIDE

2013年02月03日 ⁄ 综合 ⁄ 共 849字 ⁄ 字号 评论关闭

通过 弹出窗口提示信息后返回用户选择。
所属 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、该函数已过期

抱歉!评论已关闭.