在badi中按照正常的message x…
2014-01-22 09:18
302 查看
转自:(http://blog.csdn.net/liangziyisheng/article/details/7423533)
在badi中按照正常的message xxx的方式无法把message抛出来,
CALLPOPUP_TO_CONFIRM去解决这个问题,完了测试一看,像那么回事。
且看代码:
METHOD if_ex_invoice_update~change_at_save.
DATA: lv_answer TYPE c.
DATA: lv_text(300) TYPE c.
CONCATENATE text-002 text-003 text-004 INTO lv_text.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = text-001 " Error
text_question = lv_text
" Message text
text_button_1 = text-005
" Ingore
text_button_2 = text-006
" Handle Error
display_cancel_button = ''
" disable this button
popup_type = 'ICON_MESSAGE_ERROR'
" error message icon
IMPORTING
answer = lv_answer.
" button number
IF lv_answer = 2.
LEAVE TO SCREEN 6000.
" return to current screen
ENDIF.
ENDMETHOD.
在badi中按照正常的message xxx的方式无法把message抛出来,
CALLPOPUP_TO_CONFIRM去解决这个问题,完了测试一看,像那么回事。
且看代码:
METHOD if_ex_invoice_update~change_at_save.
DATA: lv_answer TYPE c.
DATA: lv_text(300) TYPE c.
CONCATENATE text-002 text-003 text-004 INTO lv_text.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = text-001 " Error
text_question = lv_text
" Message text
text_button_1 = text-005
" Ingore
text_button_2 = text-006
" Handle Error
display_cancel_button = ''
" disable this button
popup_type = 'ICON_MESSAGE_ERROR'
" error message icon
IMPORTING
answer = lv_answer.
" button number
IF lv_answer = 2.
LEAVE TO SCREEN 6000.
" return to current screen
ENDIF.
ENDMETHOD.
相关文章推荐
- 在badi中按照正常的message x…
- no message line prompt for ID
- Struts Message Resources 国际化
- PI Message监控手册
- Demo:Repeater 控件显示Message
- BADI EXIT等增强报W警告类消息
- SendMessage和PostMessage 的区别
- apt-get update message---------what do Ign Error Hit Get&nbsp
- 关于ActivePython 无法正常运行的…
- awk 按照某个key分发文件的妙用
- HDOJ  4300   Clairewd’s message
- trie树Message Flood
- 关于Flex的MessageBroker End…
- Message Decowding
- BADI EXIT等增强报W警告类消息
- Error while calling the Roles.AddUserToRole (error message: Cannot resolve collation conflict fo
- 《C++ Primer》学习笔记
- (转载) 关于nor flash,nand flash…
- introduction to linear…
- nyoj 592 spiral grid