CLASS_INHERITANCE SAP Method check if one class inherits from another class
Below is documentation, parameters and attributes of ABAP Method CLASS_INHERITANCE within SAP class /BOBF/CL_CONF_TOOLBOX. 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_TOOLBOX 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 CLASS_INHERITANCE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CLASS_INHERITANCE
.| Name | Type | Data Type | Description | Default Value |
| IV_SUBCLASS | Importing | TYPE SEOCLSNAME | Object Type Name | |
| IV_SUPERCLASS | Importing | TYPE SEOCLSNAME | Object Type Name | |
| ET_SUPERCLASS | Exporting | TYPE RLB_T_CLIF | Reuse Library: Table with Classes/Interfaces | |
| EV_INHERITANCE | Exporting | TYPE BOOLE_D | Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') |
Exceptions of Method CLASS_INHERITANCE
This method does not have any exceptionsExample ABAP coding
DATA: lv_ET_SUPERCLASS TYPE RLB_T_CLIF,
lv_EV_INHERITANCE TYPE BOOLE_D,
lv_IV_SUBCLASS TYPE SEOCLSNAME,
lv_IV_SUPERCLASS TYPE SEOCLSNAME,
lv_other TYPE c.
CALL METHOD /BOBF/CL_CONF_TOOLBOX=>CLASS_INHERITANCE(
EXPORTING
IV_SUBCLASS = lv_IV_SUBCLASS
IV_SUPERCLASS = lv_IV_SUPERCLASS
IMPORTING
ET_SUPERCLASS = lv_ET_SUPERCLASS
EV_INHERITANCE = lv_EV_INHERITANCE ).
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