‎2008 Jun 10 8:09 AM
Hi all ,
i m reading an examples of Defining Processing Blocks , not understanding the meaning of SET EXTENDED CHECK OFF
1_Non-Executable Event Blocks_
REPORT demo_abap_events_1.
SET EXTENDED CHECK OFF.
WRITE / 'Anweisung 1'.
FORM routine.
WRITE / 'Unterprogramm'.
ENDFORM.
Syntax error in Unicode Systems:
WRITE / 'Anweisung 2'.
PERFORM routine.
WRITE / 'Anweisung 3'.
2)_Executable Event Blocks_
REPORT demo_abap_events_2 .
SET EXTENDED CHECK OFF.
WRITE / 'Anweisung 1'.
FORM routine.
WRITE / 'Unterprogramm'.
ENDFORM.
START-OF-SELECTION.
WRITE / 'Anweisung 2'.
PERFORM routine.
WRITE / 'Anweisung 3'.
3)Executable Event Blocks
REPORT demo_abap_events_3 .
SET EXTENDED CHECK OFF.
START-OF-SELECTION.
WRITE / 'Anweisung 1'.
WRITE / 'Anweisung 2'.
PERFORM routine.
WRITE / 'Anweisung 3'.
FORM routine.
WRITE / 'Unterprogramm'.
ENDFORM.
Plz explain..these program working
Definitely rewards pts.
Best Regrds,
Savita
‎2008 Jun 10 8:20 AM
Hi Savitha,
Syntax Diagram
SET EXTENDED CHECK
Syntax
SET EXTENDED CHECK {ON|OFF}.
Effect:
This statement uses the addition OFF to deactivate the extended programcheck for the following statements, and uses the addition ON to reactivate it. A deactivated extended program check can be reactivated within the same program. The extended program reports a statement SET EXTENDED CHECK OFF without the statement SET EXTENDED CHECK ON and the superfluous statements SET EXTENDED CHECK ON. By default, the extended program check is switched on.
Notes:
This statement can only be used for warnings and errors that the program author can explictly exclude as such.
For individual statements, the extended program check can also be deactivated using pseudo comments.
In this case, deactivation of the extended program check can be overridden by selecting Also display hidden messages (pseudo comments)
Example
The statement SELECT SINGLE reads a single line from the database table TDOKUIMGR. Although this table has several key fields, the entry in the NODE_ID column of the WHERE condition is unique. The warning in the extended program check that the specified key may not be unique is therefore deactivated.
...
SET EXTENDED CHECK OFF.
SELECT SINGLE ref_object
FROM tdokuimgr
INTO docu_object
WHERE node_id = node_key.
SET EXTENDED CHECK ON.
...
Regards,
Jagadish
‎2008 Jun 10 8:23 AM
Savita,
If you had bothered to press your F1 key or searched help.sap.com you would have saved Jagadish the trouble of cutting and pasting the standard SAP help here...
Please try to help yourself by reading the help and searching here before asking these sort of questions.
Gareth.