*----------------------------- 第一种方法 -----------------------------------
data: antwort(1) type c.
call function 'POPUP_TO_CONFIRM_WITH_MESSAGE'
exporting
diagnosetext1 = '诊断文本的第一行' "这个参数是必须的
diagnosetext2 = '诊断文本的第二行'
diagnosetext3 = '诊断文本的第三行'
titel = '标题'
textline1 = '这是第一行'
textline2 = '这是第二行内容'
start_column = 25
start_row = 6
cancel_display = 'X'
importing
answer = antwort.
*----------------------------- 第二种方法 -----------------------------------
data: antwort(1) type c.
call function 'POPUP_TO_CONFIRM_STEP'
exporting
titel = '标题1'
textline1 = '这是第一行'
textline2 = '这是第二行内容'
importing
answer = antwort.
*----------------------------- 第三种方法 -----------------------------------
data p_ans type c.
call function 'POPUP_TO_CONFIRM'
exporting
titlebar = '测试抬头'
text_question = '确认拒绝?'
text_button_1 = 'yes'
text_button_2 = 'no'
display_cancel_button = 'X'
importing
answer = p_ans.
if p_ans = '1'.
write:/ 'yes'.
else.
write:/ 'no'.
endif.
*----------------------------- 第四种方法 -----------------------------------
data: answer(1).
call function 'POPUP_TO_DECIDE'
exporting
textline1 = '第一行文本'(130)
textline2 = '第二行文本。'(135)
textline3 = '第三行文本。'(131)
text_option1 = '是'(132)
text_option2 = '否'(133)
titel = '标题'(134)
start_column = 10
start_row = 5
importing
answer = answer.
case answer.
when '1'.
write 1.
when '2'.
write 2.
when 'A'.
write 'A'.
when others.
endcase.< xmlnamespace prefix ="o" ns ="urn:schemas-microsoft-com:office:office" />
评论