What does it do? The additions EXPORTING> and EXCEPTIONS> are used to pass actual parameters to the instance constructor statically or to assign return values to non-class-based exceptions.
The addition EXPORTING> must be used to supply the non-optional input parameters p1 p2 ...> of the instance constructor of the instantiated class with the type-compliant actual parameters a1 a2 ...>. The other input parameters are optional. As in regular method calls, a1>, a2 >, ... are general expression positions>. This means that functions and expressions can be passed as actual parameters in addition to data objects. Special rules> apply in this case. If a subclass does not have an instance constructor implemented explicitly, the interface of the instance constructor from the next-highest superclass that explicitly implements the instance constructor is filled .
The addition EXCEPTIONS> can be used to assign return codes to non-class-based exceptions> exc1 exc2...> The syntax and semantics are the same as in the parameter list for static method calls>.
ABAP_EXAMPLE_VX5 Creation of a Control Framework (CFW) dialog box and passes input parameters to the instance constructor of the global class CL_GUI_DIALOGBOX_CONTAINER>. The class is defined implicitly using the static type of the reference variable dialog_box>. ABEXA 00166 ABAP_EXAMPLE_END