The program code is taken from the internal table itab . If a syntax error is detected during the check, the fields f , g and h are filled as follows: – f contains the error message text – g contains the program line where the error occurred – h contains the incorrect word in the program

Examplef and h are declared as text fields and g as a whole number (integer).

If the addition DIRECTORY ENTRY is missing, the program name is used to determine the program attributes required for the check, e.g.:- include or program – the logical databaseThe field f1 is meant to contain the field attributes of SY-REPID .

Addition 2… INCLUDE f2

EffectIf there is a syntax error, this field contains the name of the include program where the error occurred.The field f2 is meant to contain the field attributes of SY-REPID .

Addition 3… OFFSET f3

EffectIf there is a syntax error, this field contains the position of the incorrect word in the incorrect line.The field f3 should be declared as a whole number (integer).

Addition 4… TRACE-TABLE t1

EffectTrace output is stored in this table. To switch trace output on or off during program checks, you use the SYNTAX-TRACE ON and SYNTAX-TRACE OFF statements.

Addition 5… DIRECTORY ENTRY f4

EffectThe program attributes required for the check are taken from the field f4 which must correspond to the structure of the table TRDIR .

Addition 6… REPLACING f5The field f5 is meant to contain the field attributes of SY-REPID .

EffectThe program code placed in the internal table is an include, not the main program. Therefore, it is the main program specified under PROGRAM which is to be checked. If this program contains an include name f5 , the contents of the internal table should be taken into account instead.You should use this addition only with PROGRAM .

Addition 7… FRAME ENTRY f6

EffectThe main program attributes required for the check (e.g. logical database, program type) are taken from the field f6 . f6 should have the structure of the table TRDIR .

Addition 8… MESSAGE-ID f7

EffectIf a syntax error occurs, the field f7 contains the relevant message key which has a structure similar to the table TRMSG .

The screen description is taken from the field string h and the internal tables f , e and m . The field string h (screen header) should correspond to the structure D020S , the internal table f (field list) to the structure D021S , the internal table e (flow logic) to the structure D022S and the internal table m (matchcode information) to the structure D023S .Example

If a syntax error is detected during the check, the fields f1 , f2 and f3 are filled as follows:- f1 contains the error message text- f2 contains the screen line where the error occurred- f3 contains the incorrect word in the screen