1. ("#EC *) exculdes error messages regarding the current abap command
2. ("#EC NOTEXT) indicates that a string does not have to be stored as a text element
3. ("#EC CALLED) indicates that a FORM has a PERFORM call
4. ("#EC NEEDED) - no messages are output about a field that is only read
5. ("#EC NOBREAK) - no messages are sent at BREAK-POINTs
6. ("#EC TRANSLANG) specifies that the use of TOUPPER or TOLOWER is also safe in multilingual systems.
7. ("#EC SYNTCHAR) specifies that the data TOUPPER or TOLOWER is used on contains only characters from the syntactical character set.
8. lv_datum "#EC DOM_EQUAL
9. #EC CI_NOCLIENT for client specified.
应用的小例子:
DATA: I TYPE I. "#EC NEEDED
I = 4.
BREAK-POINT. "#EC NOBREAK
WRITE 'Hugo'. "#EC NOTEXT
FORM AB. "#EC CALLED
ENDFORM.
新版系统用法与上面的不同
MESSAGE s001(00) DISPLAY LIKE 'I' WITH text-002 ##MG_MISSING.
需要添加在“.”里面
文章讨论了在ABAP编程中,如何使用特定的控制标记如#EC来管理错误消息、FORM调用、字段读取、断点及多语言系统中的字符转换。例如,#ECNEEDED防止关于只读字段的消息输出,#ECNOBREAK阻止在断点处发送消息。
455

被折叠的 条评论
为什么被折叠?



