SAP CLASS-METHODS FUNCTIONAL ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• RETURNING CLASS-METHODS

CLASS-METHODS, RETURNING
Short Reference

ABAP_SYNTAX
CLASS-METHODS meth $[DEFAULT IGNORE$|FAIL $]
$[IMPORTING parameters $[PREFERRED PARAMETER p$]$]
$[EXPORTING parameters$]
$[CHANGING parameters$]
RETURNING VALUE(r) typing
$[${RAISING exc1$|RESUMABLE(exc1) exc2$|RESUMABLE(exc2) ...$}
$|${EXCEPTIONS exc1 exc2 ...$}$].

What does it do?
This statement declares a functional static method meth. The additions have exactly the same syntax and meaning as those for functional instance methods.

ABAP_EXAMPLE_VX5
The class circle contains two functional static methods, circumference and area, which work with the constant pi.
ABEXA 00099
ABAP_EXAMPLE_END

Return to menu