sapdev logo background
sapdev logo sapdev logo
Comments

SAP METHODS documentation, setup help and example usage



Return to SAP documentation index


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.
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    MESSAGE_TYPE_GLOSRY
    METHOD_CALLS




    comments powered by Disqus