SAP CLASS-METHODS GENERAL ABAP Statements

Get Example source ABAP code based on a different SAP table
  



CLASS-METHODS - IMPORTING, EXPORTING, CHANGING, RAISING

Short Reference
• IMPORTING CLASS-METHODS
• PREFERRED PARAMETER CLASS-METHODS
• EXPORTING CLASS-METHODS
• CHANGING CLASS-METHODS
• RAISING CLASS-METHODS
• EXCEPTIONS CLASS-METHODS


ABAP Syntax CLASS-METHODS meth

[IMPORTING parameters [PREFERRED PARAMETER p]]
[EXPORTING parameters]
[CHANGING parameters]
[{RAISING exc1|RESUMBALE(exc1) exc2|RESUMBALE(exc2) ...}
|{EXCEPTIONS exc1 exc2 ...}].

What does it do? Declares a general static method meth. The additions define the parameter interface for the method and specify the exceptions that the method can raise and propagate. The additions have the same syntax and meaning as those for general instance methods.



Latest notes:You cannot redefine static methods. This means that you
cannot define them as abstract or final.
Static methods are always executed in the class in which they were declared, even if they were called in subclasses or using the names of subclasses.

Return to menu