SAP SET EXTENDED CHECK ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for SET_EXTENDED_CHECK

SET EXTENDED CHECK

Short Reference
• SET EXTENDED CHECK ABAP Statement
• ON SET EXTENDED CHECK (obsolete)
• OFF SET EXTENDED CHECK (obsolete)

ABAP Syntax(Obsolete)SET EXTENDED CHECK {ON|OFF}.

What does it do? This statement uses the addition OFF to deactivate the extended program check for the following statements, and uses addition ON to reactivate it. A deactivated extended program check should be reactivated in the same program. The extended program check reports a SET EXTENDED CHECK OFF statement without the following SET EXTENDED CHECK ON statement and superfluous SET EXTENDED CHECK ON statements. In the default setting, the extended program check is active.

Latest notes:This statement is obsolete and should not be used anymore. Instead, the messages from the enhanced program check for individual statements should be hidden using specific pragmas. Do not use statement SET EXTENDED CHECK in programs that use pragmas to deactivate warnings. This causes an extended program check warning that cannot be deactivated. The same applies for the pseudo comment #EC *. In this case, the deactivation of the extended program check can be overridden by selecting Also Display Hidden Messages when the check is called.



Example ABAP Coding
The SET EXTENDED CHECK statements suppress all
messages from the enhanced program check in the included program section. SET EXTENDED CHECK OFF.
DATA: a TYPE string,
b TYPE string.
a = b.
SET EXTENDED CHECK ON.

The following program section shows the recommended procedure to hide the actual messages using the associated pragma. DATA: a TYPE string ##needed,
b TYPE string.
a = b.

Return to menu