CREATE_CLASS SAP Method Create Association/Action/Node Default/... Class
Below is documentation, parameters and attributes of ABAP Method CREATE_CLASS within SAP class /BOBF/CL_CONF_MODEL_API_ADT. 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 /BOBF/CL_CONF_MODEL_API_ADT 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_CLASS can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CREATE_CLASS
.| Name | Type | Data Type | Description | Default Value |
| IV_DESCRIPTION | Importing | TYPE /BOBF/CONF_MAPI_DESCRIPTION | Description | |
| IV_NAME | Importing | TYPE SEOCLSNAME | Object Type Name | |
| IV_TYPE | Importing | TYPE STRING | Use constant GC_CLASS_TYPE | |
| IV_ACT_CAT | Importing | TYPE /BOBF/ACT_CAT | obsolete | |
| IV_NAME | Importing | TYPE SEOCLSNAME | Name of class | |
| IV_SUPERCLASS_NAME | Importing | TYPE SEOCLSNAME | Name of superclass | |
| EO_MESSAGE | Exporting | TYPE REF TO /BOBF/IF_FRW_MESSAGE | Interface of Message Object | |
| RV_SUCCESS | Returning | TYPE ABAP_BOOL |
Exceptions of Method CREATE_CLASS
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /BOBF/CL_CONF_MODEL_API_ADT.
DATA: lv_IV_DESCRIPTION TYPE /BOBF/CONF_MAPI_DESCRIPTION,
lv_IV_NAME TYPE SEOCLSNAME,
lv_IV_TYPE TYPE STRING,
lv_RV_SUCCESS TYPE ABAP_BOOL,
lv_EO_MESSAGE TYPE /BOBF/IF_FRW_MESSAGE,
lv_IV_ACT_CAT TYPE /BOBF/ACT_CAT,
lv_IV_NAME TYPE SEOCLSNAME,
lv_IV_SUPERCLASS_NAME TYPE SEOCLSNAME,
lv_other TYPE c.
CALL METHOD lo_class=>CREATE_CLASS(
EXPORTING
IV_DESCRIPTION = lv_IV_DESCRIPTION
IV_NAME = lv_IV_NAME
IV_TYPE = lv_IV_TYPE
IV_ACT_CAT = lv_IV_ACT_CAT
IV_NAME = lv_IV_NAME
IV_SUPERCLASS_NAME = lv_IV_SUPERCLASS_NAME
IMPORTING
EO_MESSAGE = lv_EO_MESSAGE
RECEIVING
RV_SUCCESS = lv_RV_SUCCESS )
"Alternate coding for Method Call with returning parameter
lv_RV_SUCCESS = lo_class=>CREATE_CLASS(
EXPORTING
IV_DESCRIPTION = lv_IV_DESCRIPTION
IV_NAME = lv_IV_NAME
IV_TYPE = lv_IV_TYPE
IV_ACT_CAT = lv_IV_ACT_CAT
IV_NAME = lv_IV_NAME
IV_SUPERCLASS_NAME = lv_IV_SUPERCLASS_NAME
IMPORTING
EO_MESSAGE = lv_EO_MESSAGE ).
Links to Related Class(s)
/BOBF/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects