Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Declarations →  Declaration Statements →  Classes and Interfaces →  Components in Classes and Interfaces 


Methods are declared using the statements

that are only possible in the declaration part of classes and interfaces.

Methods determine the behavior of a class. Instance methods are declared by the statement METHODS. Static methods are declared by the statement CLASS-METHODS. The declaration defines the interface of a method. For special tasks there are different types of methods:

Each of these methods can be declared as an instance method or as a static method. Also available, are the

of ABAP Unit, which can only be declared as instance methods.

Other versions: 7.31 | 7.40 | 7.54