Skip to content

ABAP Keyword Documentation →  ABAP − Short Reference 

INTERFACES - Short Reference

Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


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

Effect

Includes an interface in the public visibility section of a class or in another interface.

Additions

  • 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.