Short Reference




The statement INCLUDE includes the Include program incl at this position in a source text. During syntax checking and generation of 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 as of Release 6.40 by specifiying the addition IF FOUND.


  1. The statement INCLUDE is the only statement that can be used instead of a statement that 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.
  2. The ABAP Workbench supports the automatic creation of Include programs for certain program parts, such as Top Include for global declarative statements.
  3. Using the service report RSINCL00, reference lists can be created for INCLUDE programs.


These lines display the framework program of the function group ABAP_DOCU, which represents the ABAP keyword documentation on the SAP NetWeaver Application Server ABAP. It contains solely INCLUDE statements that include the actual source text.

* System plus User-defined Include-files.                *
  INCLUDE labap_docutop.       " Global Data
  INCLUDE labap_docuf01.       " Class for docu display
  INCLUDE labap_docuuxx.       " Function Modules
* User-defined Include-files (if necessary).             *
  INCLUDE labap_docuo01.       " PBO Modules
  INCLUDE labap_docui01.       " PAI Modules
  INCLUDE labap_docue01.       " Handling of Runtime Events