#EC的一些命令

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.
应用的小例子:
  1. DATA: I TYPE I. "#EC NEEDED
  2. I = 4.
  3. BREAK-POINT.    "#EC NOBREAK
  4. WRITE 'Hugo'.   "#EC NOTEXT
  5. FORM AB.        "#EC CALLED
  6. ENDFORM.
复制代码
新版系统用法与上面的不同
  1. MESSAGE s001(00) DISPLAY LIKE 'I' WITH text-002 ##MG_MISSING.
复制代码

需要添加在“.”里面

你可能感兴趣的:(程序人生,ABAPer)