Include Programs

If you want to use the same sequence of statements in several programs, you can code them once in an include program. This can be very important, for example, in the case of lengthy data declarations, which you want to use in different programs.

Furthermore, the include technique serves to modularize complex ABAP programs. Related parts from main programs of function modules and from module pools of dialog programs are principally coded as include programs. The ABAP Development Workbench supports you extensively when you create such complex programs by creating the include programs automatically and by naming them unambiguously.

The following topics describe

Creating Include Programs

Using Include Programs

 

You cannot pass data to and from include programs explicitly because their purpose is to modularize the source code. If you want to pass data to and from modules, use subroutines or function modules.