CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = msgtext
text_question = '要看详细错误信息么?'
IMPORTING
answer = out "1、 2、 A
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
弹出内表 详细信息
types: begin of tp_aufnr_dayin,
aufnr like afru-aufnr, "工单号
person like zafru-person,
line like zafru-line,
bldat like zafru-bldat,
end of tp_aufnr_dayin.
data: it_aufnr_dayin type standard table of tp_aufnr_dayin with header line .
data: begin of it_error_head occurs 10 ,
aufnr(10) type c ,
person(10) type c ,
line(20) type c ,
date(8) type c,
end of it_error_head .
it_error_head-aufnr = '工单' .
it_error_head-line = '线体'.
it_error_head-person = '领料人' .
it_error_head-date = '时间'.
append it_error_head .
LOOP AT it_error .
PACK it_error-matnr TO it_error-matnr.
MODIFY it_error .
ENDLOOP .
CALL FUNCTION 'G_DISPLAY_SELECTION_DYNPRO'
EXPORTING
dynp_title = msgtext
show_also_1 = 'X'
sel_title1 = it_dynpro
start_column = 5
"在有sel_title1参数的时候,能控制窗口的大小:)
TABLES
sel_table = it_error
EXCEPTIONS
no_lines = 1
no_line_picked = 2
OTHERS = 3.