ABAP Keyword Documentation →  ABAP Programming Guidelines →  ABAP-Specific Rules →  Programm Type and Program Properties → 

Program Type

Background

Every ABAP program has a program type that specifies which declarations and processing blocks a program can contain, and how it can be executed using the ABAP runtime environment. These are the possible program types in ABAP:

In addition to these compilation units (programs that can be compiled independently), include programs can also be used for source text organization.

In ABAP, a program execution means that the system loads a program into the memory and executes one or more of its processing blocks. A distinction is made between standalone and called program execution:

Rule

Select the appropriate program type

To select the program type, proceed as follows:

Details

The above hierarchy for selecting the program type is derived from the basic rule described, which defines the use of ABAP Objects. The following list describes specific aspects in detail:

Note

In cases where you still use program types other than class and interface pools, you should activate the check Obsolete Statements (OO Context) in the extended program check. This enables you to implement the same stringent syntax check for program components not implemented in local classes as for within classes.