SAP BAPI_CLASS_CHARVALUE_DEL_DEP Function Module for Class BAPI: Delete Local / Global Dependencies for Characteristic Value
BAPI_CLASS_CHARVALUE_DEL_DEP is a standard bapi class charvalue del dep SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Class BAPI: Delete Local / Global Dependencies for Characteristic Value processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for bapi class charvalue del dep FM, simply by entering the name BAPI_CLASS_CHARVALUE_DEL_DEP into the relevant SAP transaction such as SE37 or SE38.
Function Group: CLBP
Program Name: SAPLCLBP
Main Program: SAPLCLBP
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_CLASS_CHARVALUE_DEL_DEP pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'BAPI_CLASS_CHARVALUE_DEL_DEP'"Class BAPI: Delete Local / Global Dependencies for Characteristic Value.
EXPORTING
CLASSNUM = "
CLASSTYPE = "
CHARACTERISTIC = "
CHARACTERISTICVALUE = "
* CHANGENUMBER = ' ' "Change Number
* DELETELOCALDEP = ' ' "
* KEYDATE = SY-DATUM "
TABLES
GLOBDEPDELETE = "
RETURN = "
IMPORTING Parameters details for BAPI_CLASS_CHARVALUE_DEL_DEP
CLASSNUM -
Data type: BAPI_CLASS_KEY-CLASSNUMOptional: No
Call by Reference: No ( called with pass by value option)
CLASSTYPE -
Data type: BAPI_CLASS_KEY-CLASSTYPEOptional: No
Call by Reference: No ( called with pass by value option)
CHARACTERISTIC -
Data type: CAPIPARMS-CHARACTOptional: No
Call by Reference: No ( called with pass by value option)
CHARACTERISTICVALUE -
Data type: CAPIPARMS-CH_VALUEOptional: No
Call by Reference: No ( called with pass by value option)
CHANGENUMBER - Change Number
Data type: BAPI1003_KEY-CHANGENUMBERDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DELETELOCALDEP -
Data type: CAPIFLAG-FLLKENZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEYDATE -
Data type: BAPI_KEY_DATE-KEY_DATEDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_CLASS_CHARVALUE_DEL_DEP
GLOBDEPDELETE -
Data type: BAPI1003_DELGLOBDEPOptional: No
Call by Reference: No ( called with pass by value option)
RETURN -
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_CLASS_CHARVALUE_DEL_DEP Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_classnum | TYPE BAPI_CLASS_KEY-CLASSNUM, " | |||
| lt_globdepdelete | TYPE STANDARD TABLE OF BAPI1003_DELGLOBDEP, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_classtype | TYPE BAPI_CLASS_KEY-CLASSTYPE, " | |||
| lv_characteristic | TYPE CAPIPARMS-CHARACT, " | |||
| lv_characteristicvalue | TYPE CAPIPARMS-CH_VALUE, " | |||
| lv_changenumber | TYPE BAPI1003_KEY-CHANGENUMBER, " SPACE | |||
| lv_deletelocaldep | TYPE CAPIFLAG-FLLKENZ, " SPACE | |||
| lv_keydate | TYPE BAPI_KEY_DATE-KEY_DATE. " SY-DATUM |
|   CALL FUNCTION 'BAPI_CLASS_CHARVALUE_DEL_DEP' "Class BAPI: Delete Local / Global Dependencies for Characteristic Value |
| EXPORTING | ||
| CLASSNUM | = lv_classnum | |
| CLASSTYPE | = lv_classtype | |
| CHARACTERISTIC | = lv_characteristic | |
| CHARACTERISTICVALUE | = lv_characteristicvalue | |
| CHANGENUMBER | = lv_changenumber | |
| DELETELOCALDEP | = lv_deletelocaldep | |
| KEYDATE | = lv_keydate | |
| TABLES | ||
| GLOBDEPDELETE | = lt_globdepdelete | |
| RETURN | = lt_return | |
| . " BAPI_CLASS_CHARVALUE_DEL_DEP | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_CLASS_CHARVALUE_DEL_DEP
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single CLASSNUM FROM BAPI_CLASS_KEY INTO @DATA(ld_classnum). | ||||
| "SELECT single CLASSTYPE FROM BAPI_CLASS_KEY INTO @DATA(ld_classtype). | ||||
| "SELECT single CHARACT FROM CAPIPARMS INTO @DATA(ld_characteristic). | ||||
| "SELECT single CH_VALUE FROM CAPIPARMS INTO @DATA(ld_characteristicvalue). | ||||
| "SELECT single CHANGENUMBER FROM BAPI1003_KEY INTO @DATA(ld_changenumber). | ||||
| DATA(ld_changenumber) | = ' '. | |||
| "SELECT single FLLKENZ FROM CAPIFLAG INTO @DATA(ld_deletelocaldep). | ||||
| DATA(ld_deletelocaldep) | = ' '. | |||
| "SELECT single KEY_DATE FROM BAPI_KEY_DATE INTO @DATA(ld_keydate). | ||||
| DATA(ld_keydate) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects