CREATE_DERIVED_CLASS SAP Method Derives a New Class from a Given Superclass
Below is documentation, parameters and attributes of ABAP Method CREATE_DERIVED_CLASS within SAP class CL_BSP_WD_CLASS_GEN_TOOL. 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 CL_BSP_WD_CLASS_GEN_TOOL into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Static
This is a Static Method so you can call it directlyThe following technical details of method CREATE_DERIVED_CLASS can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CREATE_DERIVED_CLASS
.| Name | Type | Data Type | Description | Default Value |
| IV_CLASSNAME | Importing | TYPE SEOCLSNAME | Object Type Name | |
| IV_CORRECTION_REQUEST | Importing | TYPE TRKORR | Request/Task | |
| IV_DEVCLASS | Importing | TYPE DEVCLASS | ||
| IV_LOG | Importing | TYPE REF TO IF_BSP_WD_LOGGING | Logging Interface | |
| IV_SUPER_CLASSNAME | Importing | TYPE SEOCLSNAME | Object Type Name |
Exceptions of Method CREATE_DERIVED_CLASS
SUPER_NOT_EXISTING - Superclass does not existExample ABAP coding
DATA: lv_IV_CLASSNAME TYPE SEOCLSNAME,
lv_IV_CORRECTION_REQUEST TYPE TRKORR,
lv_IV_DEVCLASS TYPE DEVCLASS,
lv_IV_LOG TYPE IF_BSP_WD_LOGGING,
lv_IV_SUPER_CLASSNAME TYPE SEOCLSNAME,
lv_other TYPE c.
CALL METHOD CL_BSP_WD_CLASS_GEN_TOOL=>CREATE_DERIVED_CLASS(
EXPORTING
IV_CLASSNAME = lv_IV_CLASSNAME
IV_CORRECTION_REQUEST = lv_IV_CORRECTION_REQUEST
IV_DEVCLASS = lv_IV_DEVCLASS
IV_LOG = lv_IV_LOG
IV_SUPER_CLASSNAME = lv_IV_SUPER_CLASSNAME ).
Links to Related Class(s)
CL_BSP_W...Full list of available SAP object classes
Search for further information about these or an SAP related objects