SAP INTERFACES - Reference ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for INTERFACES

INTERFACES

ABAP Reference
ABAP Code Snippet


ABAP Syntax INTERFACES intf

[PARTIALLY IMPLEMENTED]
{ { [ABSTRACT METHODS meth1 meth2 ...]
[FINAL METHODS meth1 meth2 ...] }
| [ALL METHODS {ABSTRACT|FINAL}] }
[DATA VALUES attr1 = val1 attr2 = val2 ...].
ABAP Code Snippet

What does it do? Includes an interface in the public visibility section of a class or in another interface.

ABAP Addition ABSTRACT METHODS meth1 meth2 ...
Makes the specified instance methods meth1, meth2, ...abstract when the interface is implemented in a class.
FINAL METHODS meth1 meth2 ...
Makes the specified instance methods meth1, meth2, ... final when the interface is implemented in a class.
ALL METHODS {ABSTRACT|FINAL}
Makes all instance methods abstract or final when the interface is implemented in a class.
DATA VALUES attr1 = val1 attr2 = val2 ...
Assigns start values val1, val2, ... to instance attributes attr1, attr2, ... when the interface is implemented in a class.
PARTIALLY IMPLEMENTED
In test classes, suppresses the message that not all interfaces are implemented.

Return to menu