定义对话框

代码: 

         CALL FUNCTION 'POPUP_TO_CONFIRM'
 3             EXPORTING
 4 
 5               text_question         = '此单已经有打印,是否继续?'
 6 
 7               text_button_1         = ''(001)
 8 
 9               text_button_2         = ''(002)
10 
11               display_cancel_button = ''
12 
13             IMPORTING
14 
15               answer                = answer
16 
17             EXCEPTIONS
18 
19               text_not_found        = 1
20 
21               OTHERS                = 2.
22 
23           IF answer EQ 1.
24 
25             EXIT.
26 
27           ENDIF.
28 
29           IF answer EQ 2.
30 
31 *            message '用户取消打印' type 'E'.
32 
33             RETURN.
34 
35           ENDIF.

效果:

 

posted @ 2017-10-25 22:24  斌将军  阅读(306)  评论(0编辑  收藏  举报