ABAPINCLUDE_PROG - INCLUDE PROG
Addresses (Business Address Services) RFUMSV00 - Advance Return for Tax on Sales/PurchasesThis documentation is copyright by SAP AG.
INCLUDE
Syntax
INCLUDE incl [IF FOUND].
Effect
The statement INCLUDE includes the include program incl at this position in a source text. During syntax checking and generationof the program by the ABAP Compiler, the application is replaced by the source text of the include program. The included INCLUDE program must consist of full statements.
If the specified include program does not exist, a syntax error will be triggered. This error message can be suppressed by specifiying the addition IF FOUND.
Notes
- The statement INCLUDE is the only statement that can be used instead of astatementthat introduces a program at the first position of a program. The requirement is that, after execution of the include program, a statement that introduces a program is at the beginning of the including program.
- Use include programs exclusively for the source code modularization of a single ABAP program. Avoid reusing an include program in multiple programs.
- The ABAP Workbench supports the automatic creation of include programs for specific program parts, such as thetopinclude for global declarative statements. Always use the naming conventions proposed by the ABAP Workbench.
- The top include may only contain declarative statements and is taken into account when single include programs of a program are compiled.
- If used for declarations, an include program should enclose at least the declaration of a class or of an interface. If used for implementations, an include program should enclose at least one processing block.
- The ABAP Workbench supports the automatic creation of include programs for specific program parts, such as thetopinclude for global declarative statements. Always use the naming conventions proposed by the ABAP Workbench.
- In the Repository Browser of the ABAP Workbench's Object Navigator, the INCLUDE programs bound by a program are listed as its subnodes.
Example
These lines show the framework program of the function group ABAP_DOCU which represents the keyword documentation on theApplicationServer ABAP. It contains exclusively INCLUDE statements which embed the actual source code.labap_docutop itself is made up of include programs for the individual declarations (global data and class declarations local to the program).
- *&----------------------------------------------------------------*
*& Function Group SAPLABAP_DOCU
*&----------------------------------------------------------------*
INCLUDE labap_docutop. " Global Declarations
INCLUDE labap_docue00. " Load of Program
INCLUDE labap_docuuxx. " Function Modules
INCLUDE labap_docuo01. " PBO Modules
INCLUDE labap_docui01. " PAI Modules
INCLUDE labap_docue01. " Handling of Runtime-Events
INCLUDE labap_docup01. " Class implementations
INCLUDE labap_docup02.
INCLUDE labap_docup03.
INCLUDE labap_docup04.
INCLUDE labap_docut99. " Unit tests
Addresses (Business Address Services) ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 5388 Date: 20120522 Time: 232152 triton ( 131 ms )






