SYNTAX-CHECK FOR DYNPRO h f e m ...MESSAGE f1 ...LINEf2...WORD f3.
1. ... OFFSET f12. ... TRACE-TABLE t1
Syntax check for screenThe screen description is taken from the field string h and theinternal tables f , e and m . The field string h (screen header)should correspond to the structure D020S , the internal tablef (field list) to the structure D021S , the internal table e (flowlogic) to the structure D022S and the internal table m(matchcode information) to the structure D023S .
DATA: DHEAD LIKE D020S, "screenheaderDFIELDS LIKE D021S OCCURS 20, "field listDFLOWL LIKE D022S OCCURS 20, "flow logicMCINFO LIKE D023S OCCURS 20."matchcode informationIf 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 screenThe return code value is set as follows:SY-SUBRC = 0 The screen contains no syntax errors.SY_SUBRC = 4 The screen contains syntax errors.
... OFFSET f1
When a systax error occurs, this field contains the position of the incorrect word in the incorrect line.
... TRACE-TABLE t1
Any trace output is stored in this table. Trace output isautomatically switched on when you specify this addition.ADD-CORRESPONDING
ADD-CORRESPONDING rec1 TO rec2.
Interprets rec1 and rec2 as field strings. If, for example, rec1and rec2 are tables, executes the statement for their headerlines.Searches for all sub-fields which occur both in rec1 and rec2and then, for all relevant field pairs corresponding to the sub-fields ni , generates statements of the formADD rec1-ni TO rec2-ni.The other fields remain unchanged.With complex structures, the complete names of thecorresponding fieldpairs must be textually identical.
DATA: BEGIN OF VECTOR,X TYPE I,Y TYPE I,LENGTH TYPE I,END OF VECTOR,BEGIN OF CIRCLE,VOLUME TYPE PY TYPE P,RADIUS TYPE I,X TYPE I,END OF CIRCLE....ADD-CORRESPONDING VECTOR TO CIRCLE.The sub-fields X and Y occur in both the field strings VECTORand CIRCLE . Therefore, the ADD-CORRESPONDING statementis equivalent to both the following statements:ADD VECTOR-X TO CIRCLE-X.ADD VECTOR-Y TO CIRCLE-Y.
All fields with the same name are added, whethernumeric or not. The same conversions are performedas with
and similar runtime errors to thosepossible with ADD can also occur.
1. ASSIGN f TO <fs>.2. ASSIGN (f) TO <fs>.3. ASSIGN TABLE FIELD (f) TO <fs>.4. ASSIGN LOCAL COPY OF MAIN TABLE FIELD (f) TO <fs>.5. ASSIGN COMPONENT idx OF STRUCTURE rec TO <fs>.6. ASSIGN COMPONENT name OF STRUCTURE rec TO <fs>.