Message在Dialog的用法
2015-08-31 19:57
281 查看
Message 用在Screen或者做增强的时候,和普通的Report有些差别,尽量不要在PBO中使用S以外的Message,尤其是E类型的Message,可能会直接导致程序的退出,而不给你改正数据的机会。如果需要有E类型的Message,可以放到PAI里面。
如ME31K/ME32K的行项目检查增强,EXIT_SAPMM06E_016里面如果有E类型的Message将导致程序的直接退出。正确的方法是放到EXIT_SAPMM06E_017。
附:各个类型Message在各个事件的处理方法
The message appears in a dialog box and the program terminates. When the user has confirmed the message, control returns to the next- highest area. All the internal sessions are deleted from the stack.
The message appears in the status line. Then PAI terminates and the system returns to the current screen. All the screen fields combined usingFIELD or
CHAIN are now ready for input. The user must enter new values. The system triggers the PAI event again, with the new values.
The message appears in a dialog box. Once the user has confirmed the message, the program continues immediately after theMESSAGE statement.
The message appears in the status line of the next screen. The program continues immediately after the message statement.
The message appears in the status line. Then the system continues as in 2, except that the user can quit the message using ENTER without having to enter new values. The system continues handling the PAI event from immediately after the message statement.
No message is displayed and a runtime error, MESSAGE_TYPE_X, is triggered. The short dump text contains the message identification.
The program terminates with a runtime error DYNPRO_MSG_IN_HELP. While F1 and F4 are processed, the system cannot send error messages or warnings.
The message appears in the status line. Then the system stops selection screen processing and returns to the selection screen itself. The screen fields specified in the additions to theAT SELECTION-SCREEN statement are now ready for input.
The user must enter new values. The system then starts processing the selection screen again with the new values.
The message appears in the status line. Then the system continues as in 8, except the the user can quit the message using ENTER, without having to enter new values. The system continues handling the PAI event from immediately after the message statement.
The message appears in the status line and the processing block terminates. The list level is displayed as before.
The message appears in the status line and the processing block terminates. The system then returns to the program call.
如ME31K/ME32K的行项目检查增强,EXIT_SAPMM06E_016里面如果有E类型的Message将导致程序的直接退出。正确的方法是放到EXIT_SAPMM06E_017。
附:各个类型Message在各个事件的处理方法
事件 | MESSAGE类型和处理方法 | |||||
A | E | I | S | W | X | |
PAI Module | 1 | 2 | 3 | 4 | 5 | 6 |
PAI Module for POH | 1 | 7 | 3 | 4 | 7 | 6 |
PAI Module for POV | 1 | 7 | 3 | 4 | 7 | 6 |
AT SELECTION-SCREEN ... | 1 | 8 | 3 | 4 | 9 | 6 |
AT SELECTION-SCREEN for POH | 1 | 7 | 3 | 4 | 7 | 6 |
AT SELECTION-SCREEN for POV | 1 | 7 | 3 | 4 | 7 | 6 |
AT SELECTION-SCREEN ON EXIT | 1 | 7 | 3 | 4 | 7 | 6 |
AT LINE-SELECTION | 1 | 10 | 3 | 4 | 10 | 6 |
AT PFn | 1 | 10 | 3 | 4 | 10 | 6 |
AT USER-COMMAND | 1 | 10 | 3 | 4 | 10 | 6 |
INITIALIZATION | 1 | 11 | 3 | 4 | 11 | 6 |
START-OF-SELECTION | 1 | 11 | 3 | 4 | 11 | 6 |
GET | 1 | 11 | 3 | 4 | 11 | 6 |
END-OF-SELECTION | 1 | 11 | 3 | 4 | 11 | 6 |
TOP-OF-PAGE | 1 | 11 | 3 | 4 | 11 | 6 |
END-OF-PAGE | 1 | 11 | 3 | 4 | 11 | 6 |
TOP-OF-PAGE DURING ... | 1 | 10 | 3 | 4 | 10 | 6 |
LOAD-OF-PROGRAM | 1 | 1 | 4 | 4 | 4 | 6 |
PBO Module | 1 | 1 | 4 | 4 | 4 | 6 |
AT SELECTION-SCREEN OUTPUT | 1 | 1 | 4 | 4 | 4 | 6 |
The message appears in the status line. Then PAI terminates and the system returns to the current screen. All the screen fields combined usingFIELD or
CHAIN are now ready for input. The user must enter new values. The system triggers the PAI event again, with the new values.
The message appears in a dialog box. Once the user has confirmed the message, the program continues immediately after theMESSAGE statement.
The message appears in the status line of the next screen. The program continues immediately after the message statement.
The message appears in the status line. Then the system continues as in 2, except that the user can quit the message using ENTER without having to enter new values. The system continues handling the PAI event from immediately after the message statement.
No message is displayed and a runtime error, MESSAGE_TYPE_X, is triggered. The short dump text contains the message identification.
The program terminates with a runtime error DYNPRO_MSG_IN_HELP. While F1 and F4 are processed, the system cannot send error messages or warnings.
The message appears in the status line. Then the system stops selection screen processing and returns to the selection screen itself. The screen fields specified in the additions to theAT SELECTION-SCREEN statement are now ready for input.
The user must enter new values. The system then starts processing the selection screen again with the new values.
The message appears in the status line. Then the system continues as in 8, except the the user can quit the message using ENTER, without having to enter new values. The system continues handling the PAI event from immediately after the message statement.
The message appears in the status line and the processing block terminates. The list level is displayed as before.
The message appears in the status line and the processing block terminates. The system then returns to the program call.
相关文章推荐
- Swift UILabel 文字大小随着宽度调整
- C语言的整型溢出问题(转)
- 5个常见的RuntimeException
- OC01_类和对象
- HDU 1060.Leftmost Digit【重点在分析】【格式【晕】】【8月31】【记录】
- 重新认识链表(单向链表并遍历)
- 简单的仿QQ聊天(自娱自乐聊天室)
- python中遍历dict的value
- [Leetcode] Basic Calculator
- java学习个人笔记---java内存管理之Java对象的引用方式
- C语言--变量的存储
- FI中替代和校验的几个相关函数
- HDU3435A new Graph Game(KM最小费用圈覆盖)
- 使用VMware WorkStation安装fedora出现section does not end with %%end错误的解决
- 石子归并问题(nyoj737)
- 社説 20150831 地熱発電 豊富な資源を有効活用しよう
- 关于JSONArray明明添加add JSONObject却为空
- Fortran向C传递NULL值
- QT5中QString与char *的相互转换
- 专家来谈下置换贴图,法线贴图和凹凸贴图的区别