代码:
1 CALL FUNCTION 'POPUP_TO_CONFIRM' 2 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 IMPORTING14 15 answer = answer16 17 EXCEPTIONS18 19 text_not_found = 120 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.
效果: