ABAPCREATE_OBJECT_PARAMETERS - CREATE OBJECT PARAMETERS
ABAP Short Reference General Data in Customer MasterThis documentation is copyright by SAP AG.
CREATE OBJECT - parameter_list
Syntax
... [EXPORTING p1 = a1 p2 = a2 ...]
[EXCEPTIONS exc1 = n1 exc2 = n2 ... [OTHERS = n_others]].
Effect
The additions EXPORTING and EXCEPTIONS are used to pass actual parameters to the instance constructor statically or to assign return codes to non-class-based exceptions.
- When using the addition EXPORTING, you must specify the non-optional input parameters p1 p2... of the instance constructor of the instantiated class using the type-specific actual parameters a1 a2 .... You have the option of specifying the optional input parameters. As with normal method calls, either data objects orfunctions andexpressions can be declared as actual parameters (as of Release 7.1). If a subclass does not havean instance constructor implemented explicitly, the interface of the instance constructor from the next-highest superclass that explicitly implements the instance constructor is used.
- You can use the addition EXCEPTIONS to assign return values to non-class-based exceptions exc1 exc2....
The syntax and meaning are the same as those that apply to the parameter list of the CALL METHOD statement.
Example
The following example illustrates how a dialog box of the Control Framework (CFW) is generated and howinput parameters are passed 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.
DATA dialog_box TYPE REF TO cl_gui_dialogbox_container.
CREATE OBJECT dialog_box
EXPORTING parent = cl_gui_container=>desktop
width = 1000
height = 350.
ROGBILLS - Synchronize billing plans BAL_S_LOG - Application Log: Log header data
This documentation is copyright by SAP AG.
Length: 2739 Date: 20120522 Time: 042853 triton ( 129 ms )






