We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
INCLUDE incl $[IF FOUND$].
The statement INCLUDE includes the include program incl at this position in the source code. In syntax checks and the generation of the program by the ABAP Compiler, the statement is replaced by the source code of the include program. The included INCLUDE program must consist of full statements.
If the specified include program does not exist, the program is syntactically incorrect and cannot be executed. This error situation can be suppressed by specifying the addition IF FOUND.
... IF FOUND
The addition IF FOUND specifies that the specified include program is only included if it exists. If the include program does not exist, the INCLUDE statement is ignored and no syntax error occurs at this position.
If the addition IF FOUND is specified, the including program should not be dependent on the source
code of the include program. Otherwise, the include program may be syntactically correct in systems where it exists but incorrect in other systems.
These lines show the master program of the function pool ABAP_DOCU, which represents the ABAP Keyword Documentation in SAP GUI. It only contains INCLUDE statements that include the actual source code, where labap_docutop itself is made up of include programs for the individual declarations (global data and class declarations local to the program).
*&----------------------------------------------------------------*
*& Function Pool 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
Leave us your contact details and we will call you back. Fields marked with * are mandatory.
We offer holistic SAP solutions from a single source to shape digital change and develop new business areas.
Switzerland
Schaffhausen
Germany
Mannheim, Düsseldorf, Munich
USA
Haverhill
Greece
Thessaloniki