SAP METHODS - Reference ABAP Statements
Get Example source ABAP code based on a different SAP table
Standard SAP Help for METHODS
METHODS
ABAP Code Snippet
ABAP Syntax
[FOR EVENT evt OF {class|intf}]
[ IMPORTING {{VALUE(p1)|REFERENCE(p1)|p1}
{VALUE(p2)|REFERENCE(p2)|p2}
... }
[PREFERRED PARAMETER p] ]
[ EXPORTING {{VALUE(p1)|REFERENCE(p1)|p1}
{VALUE(p2)|REFERENCE(p2)|p2}
... } ]
[ CHANGING {{VALUE(p1)|REFERENCE(p1)|p1}
{VALUE(p2)|REFERENCE(p2)|p2}
... } ]
[ RETURNING {VALUE(r)}
[ {RAISING exc1|RESUMABLE(exc1) exc2|RESUMABLE(exc2) ...}
| {EXCEPTIONS exc1 exc2 ...} ].
ABAP Code Snippet
What does it do? Declares an
ABAP Addition
Declares an abstract method that cannot be implemented in the same class.
Declares a final method that cannot be redefined in a subclass.
Declares an
Defines input parameters
Defines output parameters
Defines an input/output parameter
Declares a
Defines the
Defines the
Types the formal parameters.
Defines optional input or input/output parameters either with or without the replacement parameters
Declares a parameter
Declares class-based exceptions
Defines non-class based exceptions
Return to menu