ABAP Keyword Documentation → ABAP − Reference → Program Layout → Modularization Statements → Source Code Modules
Include Programs
Include programs are used to split ABAP source code into individual
repository objects. An ABAP program can be created in the
program attributes using the
program type include program.
Include programs do not need to contain introductory statements for programs and cannot be generated
independently from the ABAP compiler. When using the statement INCLUDE
, however, include programs can be integrated into
compilation units.
An include program must contain complete statements. It can include other include programs but not it cannot include itself. An include program does not need to contain complete processing blocks.
Other versions: 7.31 | 7.40 | 7.54
Programming Guideline
Do not use include programs multiple times
Notes
- For the global declaration part of an ABAP program, a special top include is available which is included in the compilation of individual include programs of a program.
- Master programs such as class pools or function groups are organized in include programs automatically by ABAP Workbench.