Show TOC

Source Code UnitLocate this document in the navigation structure

A source code unit comprises a coherent source-code part of an ABAP development object that is output to an editor window. Certain functions within the ABAP Development Tools can only be used within one and the same source code unit. For example, changes in variable names only take effect for occurrences within the same source code unit. Version compares of ABAP sources are also performed at the level of individual units.

The entire source code of a development object can even be divided across several source code units. This is the case, for example, with global ABAP classes where the different source code units are spread across the respective editor tabs. In this way, the definition and implementation part of a class forms a single source code unit and is output under the Global Class tab. Local definitions and test classes that belong to the class define their own source codes, respectively.

Another example can be seen in function groups. Each individual include of a function group as well as the function group itself form precisely one source code unit in each case.

Each individual tab in the class editor represents exactly one source code unit of an ABAP class
Figure 1: Each individual tab in the class editor represents exactly one source code unit of an ABAP class