Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Declarations →  Declaration Statements 

Classes and Interfaces

This section describes the definition of classes and interfaces and of their components. Classes and interfaces form the basis for ABAP Objects, the object-oriented part of the ABAP language. Classes and interfaces can be defined in ABAP programs of the following program types:

  • In a class pool it is possible to define precisely one global class in the class library that can be used in all other ABAP programs. In the global declaration part of a class pool, it is possible to define local data types, classes, and interfaces to be used in the class pool.
  • In an interface pool, precisely one global interface from the class library can be defined for use in all other ABAP programs. In the global declaration section of an interface pool, you are not allowed to define local data types, classes and interfaces. You can declare type groups. In interface pools, no other statements are allowed outside of the global interfaces.
  • In all other ABAP programs, except type groups, local classes and interfaces to be used in the program itself can be defined.

Other versions: 7.31 | 7.40 | 7.54

Continue

ABAP Objects - Overview

CLASS

INTERFACE

Components in Classes and Interfaces