This statement is for internal use only.
Incompatible changes or further developments may occur at any time without warning or notice.
1. GENERATE
REPORT prog.
2. GENERATE SUBROUTINE POOL itab NAME name.
GENERATE REPORT prog.
1. ...
MESSAGE f1
2. ...
INCLUDE f2
3. ...
LINE f3
4. ...
WORD f4
5. ...
OFFSET f5
6. ...
TRACE-FILE f6
7. ...
DIRECTORY ENTRY f7
8.
... WITHOUT SELECTION-SCREEN
9.
... MESSAGE-ID f8
10....
SHORTDUMP-ID f9
11.... WITH PRECOMPILED HEADERS
Generates the program specified in the field prog. If
the program is a report (i.e. a type 1 program), the selection screen is generated automatically.
The Return Code is set as follows:
... MESSAGE f1
When a syntax error occurs, the error message is stored in this field.
... INCLUDE f2
When a syntax error occurs, the name of the include program concerned is stored in this field.
... LINE f3
When a syntax error occurs, the number of the incorrect line is stored in this field.
... WORD f4
When a syntax error occurs, the incorrect word is stored in this field.
... OFFSET f5
When a syntax error occurs, the position of the incorrect word in the incorrect line is stored in this field.
... TRACE-FILE f6
Trace output is stored in this file. This addition automatically activates the trace mode.
... DIRECTORY ENTRY f7
The program attributes required for checking are taken from the field f7.
This field must correspond to the structure of the table TRDIR.
... WITHOUT SELECTION-SCREEN
Does not generate the selection screen.
... MESSAGE-ID f8
If a syntax error occurs, writes the key of the appropriate error messag to the field
f8. This key has the same structure as the key of the TRMSG table.
... SHORTDUMP-ID f9
If a short dump occurs, writes the key of the appropriate short dump to the field f9. This key has a maximum length of 30 characters.
... WITH PRECOMPILED HEADERS
This addition allows you to regenerate precompiled headers during the generation of the ABAP program
prog. Precompiled headers are used to increase the translation
speed of the ABAP compiler by buffering the declaration data of global classes, interfaces and type groups in formatted form for the ABAP compiler.
If you use this addition, you must ensure that the application performs a
COMMIT WORK or ROLLBACK
WORK within a short period of time. This ensures that the database locks set when the
precompiled headers are regenerated are held for a short time only and thus do not block the generation of other ABAP programs.
GENERATE SUBROUTINE POOL itab NAME name.
1.
... MESSAGE f1
2. ...
INCLUDE f2
3. ... LINE f3
4. ...
WORD f4
5. ... OFFSET f5
6. ...
TRACE-FILE f6
7. ... MESSAGE-ID f8
8. ... SHORTDUMP-ID f9
Generates a temporary subroutine pool. The source code for the subroutine pool to be generated is passed
on in the internal table itab. The internal table must
have a character-type line type. The line type can be of the type STRING.
The field
name contains the name under which FORM routines
can be addressed in the temporary subroutine pool via external PERFORM.
The additions have the same meaning as with GENERATE REPORT.
Only the addition DIRECTORY-ENTRY is not supported with
GENERATE SUBROUTINE POOL because temporary subroutine
pools are always generated as type S programs and the arithmetic flag is taken over from the generating program.
The Return Code is set as follows:
In contrast to GENERATE REPORT, the source code is passed
on in an internal table with GENERATE SUBROUTINE POOL,
not read from the database. The load version generated is not written to the database but held in main memory only.
Catchable Exceptions
CX_SY_GENERATE_SUBPOOL_FULL
CX_SY_GEN_SOURCE_TOO_WIDE
In some cases, the syntax rules that apply to Unicode programs are different
than those for non-Unicode programs. See Unicode Changes
Creating and Starting Temporary Programs