Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Declarations →  Declaration Statements →  Classes and Interfaces →  INTERFACE 

INTERFACE - DEFERRED

Quick Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


INTERFACE intf DEFERRED [PUBLIC]. 

Effect

This variant of the statement INTERFACE is used to declare the interface intf independently of the location of the actual definition in the program. It does not introduce a declaration part and cannot be ended using ENDINTERFACE. The meaning is the same as for the corresponding variants of the statement CLASS.


Note

This variant of the statement INTERFACE can also only be specified in the context described under INTERFACE.


Example

Using the interface intf2 in front of the actual declaration in a type reference in interface intf1. The interface must be made known using INTERFACE DEFERRED.

INTERFACE intf2 DEFERRED. 

INTERFACE intf1. 
  ... 
  DATA iref TYPE REF TO intf2. 
  ... 
ENDINTERFACE. 

INTERFACE intf2. 
  ... 
ENDINTERFACE.