CREATE_OBJECT SAP Method Costing Engine API: Generate Object
Below is documentation, parameters and attributes of ABAP Method CREATE_OBJECT within SAP class IF_UA_ELEMENT_CREATE. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name IF_UA_ELEMENT_CREATE into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method CREATE_OBJECT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CREATE_OBJECT
.Name | Type | Data Type | Description | Default Value |
IO_OBJECT_TYPE | Importing | TYPE REF TO CL_UA_OBJECT_TYPE | Object Type | |
IO_PARENT_OBJECT | Importing | TYPE REF TO CL_UA_OBJECT | Parent | |
IO_RECEIVER_OBJECT | Importing | TYPE REF TO CL_UA_OBJECT | Template for Formulas | |
IR_DATA | Importing | TYPE REF TO DATA | ||
IT_VALUE | Importing | TYPE UAB_TH_FIELDNAME_VALREF | Table of Fields and Values of any Type | |
EB_ALREADY_EXISTS | Exporting | TYPE BOOLE_D | Data Element for Domain BOOLE: TRUE (='X') and FALSE (=' ') | |
EO_OBJECT | Exporting | TYPE REF TO CL_UA_OBJECT | ||
ET_MESSAGE | Exporting | TYPE UAB_T_MESSAGE | Message table |
Exceptions of Method CREATE_OBJECT
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO IF_UA_ELEMENT_CREATE.
DATA: lv_EB_ALREADY_EXISTS TYPE BOOLE_D,
lv_EO_OBJECT TYPE CL_UA_OBJECT,
lv_ET_MESSAGE TYPE UAB_T_MESSAGE,
lv_IO_OBJECT_TYPE TYPE CL_UA_OBJECT_TYPE,
lv_IO_PARENT_OBJECT TYPE CL_UA_OBJECT,
lv_IO_RECEIVER_OBJECT TYPE CL_UA_OBJECT,
lv_IR_DATA TYPE DATA,
lv_IT_VALUE TYPE UAB_TH_FIELDNAME_VALREF,
lv_other TYPE c.
CALL METHOD lo_class=>CREATE_OBJECT(
EXPORTING
IO_OBJECT_TYPE = lv_IO_OBJECT_TYPE
IO_PARENT_OBJECT = lv_IO_PARENT_OBJECT
IO_RECEIVER_OBJECT = lv_IO_RECEIVER_OBJECT
IR_DATA = lv_IR_DATA
IT_VALUE = lv_IT_VALUE
IMPORTING
EB_ALREADY_EXISTS = lv_EB_ALREADY_EXISTS
EO_OBJECT = lv_EO_OBJECT
ET_MESSAGE = lv_ET_MESSAGE ).
Links to Related Class(s)
IF_UA_EL...Full list of available SAP object classes
Search for further information about these or an SAP related objects