简体   繁体   English

类定义内的ABAP“ SET EXTENDED CHECK”语句

[英]ABAP “SET EXTENDED CHECK” statement inside class definition

In a customer object, I see the following ABAP code: 在一个客户对象中,我看到以下ABAP代码:

CLASS lcl_detail DEFINITION FINAL.
  SET EXTENDED CHECK OFF.      
  PUBLIC SECTION.
  [...]
ENDCLASS.

I've performed a syntax check on an SAP 7.40 system and it is fine. 我已经在SAP 7.40系统上执行了语法检查,这很好。 But if I check the 7.40 ABAP Keyword documentation of CLASS DEFINITION , it does not say that SET EXTENDED CHECK is allowed in this place. 但是,如果我查看CLASS DEFINITION的7.40 ABAP关键字文档,就不会说在此位置允许使用SET EXTENDED CHECK。 Also, I though there shouldn't be anything between the CLASS DEFINITION part and the first SECTION part. 另外,尽管在CLASS DEFINITION部分和第一个SECTION部分之间不应该有任何内容。

Since the SET EXTENDED CHECK {ON|OFF} statement is used to activate/deactivate the complete check of the ABAP source code for all errors that can be detected statically, it can be put in any section of a program. 由于SET EXTENDED CHECK {ON|OFF}语句用于激活/禁用ABAP源代码的完整检查,以检查可以静态检测到的所有错误,因此可以将其放在程序的任何部分。

It is not used in program's execution. 程序执行中不使用它。 It's used when you run the extended program check (SLIN or ABAP Test Cockpit). 在运行扩展程序检查(SLIN或ABAP测试驾驶舱)时使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM