SAP METHODS

Get Example source ABAP code based on a different SAP table
  


ARTICLE

Methods
Methods are declared using the statements
METHODS for instance methods
CLASS-METHODS for static methods
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:
General methods
Functional methods
Constructors
Event Handlers
Each of these methods can be declared as an instance method or as a static method. Also available, are the
test methods
of ABAP Unit, which can only be declared as instance methods.