SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → Declarations → Declaration Statements → Classes and Interfaces →Syntax Forms
Declaration of Interfaces
1. INTERFACE intf [PUBLIC].
[components]
ENDINTERFACE.
Advance Declaration of Interfaces
2. INTERFACE intf DEFERRED [PUBLIC].
Effect
The statement INTERFACE defines interfaces or declares them in advance.
The statements INTERFACE and associated statements ENDINTERFACE can be specified only in the global context of a program. INTERFACE and ENDINTERFACE cannot be specified within classes, procedures, and processing blocks implemented internally as a procedure (event blocks for GET and AT SELECTION-SCREEN). This applies in particular to the variant of INTERFACE specified here, which is not closed using ENDINTERFACE.
Notes