SAP BAPI_CLASS_CHARVALUE_LOCAL_DEP Function Module for Class BAPI: Maintain Local Dependency for Characteristic Value









BAPI_CLASS_CHARVALUE_LOCAL_DEP is a standard bapi class charvalue local 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: Maintain Local Dependency 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 local dep FM, simply by entering the name BAPI_CLASS_CHARVALUE_LOCAL_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_LOCAL_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_LOCAL_DEP'"Class BAPI: Maintain Local Dependency for Characteristic Value
EXPORTING
CLASSNUM = "Class
CLASSTYPE = "Class Type
CHARACTERISTIC = "Characteristic
CHARACTERISTICVALUE = "Characteristic Value
DEPENDENCYDATA = "Basic Data of Dependency
PROCORDER = "Sort Sequence (for Procedures)
* DELETEFLAG = ' ' "Deletion Indicator
* CHANGENUMBER = ' ' "Change Number
* KEYDATE = SY-DATUM "Valid-From Date

TABLES
DESCRIPTION = "Dependency Description
SOURCE = "Source Code of Dependency
DOCUMENTATION = "Dependency Documentation
RETURN = "Return Parameter
.



IMPORTING Parameters details for BAPI_CLASS_CHARVALUE_LOCAL_DEP

CLASSNUM - Class

Data type: BAPI_CLASS_KEY-CLASSNUM
Optional: No
Call by Reference: No ( called with pass by value option)

CLASSTYPE - Class Type

Data type: BAPI_CLASS_KEY-CLASSTYPE
Optional: No
Call by Reference: No ( called with pass by value option)

CHARACTERISTIC - Characteristic

Data type: CAPIPARMS-CHARACT
Optional: No
Call by Reference: No ( called with pass by value option)

CHARACTERISTICVALUE - Characteristic Value

Data type: CAPIPARMS-CH_VALUE
Optional: No
Call by Reference: No ( called with pass by value option)

DEPENDENCYDATA - Basic Data of Dependency

Data type: BAPI_DEPENDENCY_DATA
Optional: No
Call by Reference: No ( called with pass by value option)

PROCORDER - Sort Sequence (for Procedures)

Data type: CAPIPARMS-PROC_ORDER
Optional: No
Call by Reference: No ( called with pass by value option)

DELETEFLAG - Deletion Indicator

Data type: CAPIFLAG-FLLKENZ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGENUMBER - Change Number

Data type: BAPI1003_KEY-CHANGENUMBER
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

KEYDATE - Valid-From Date

Data type: BAPI_KEY_DATE-KEY_DATE
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BAPI_CLASS_CHARVALUE_LOCAL_DEP

DESCRIPTION - Dependency Description

Data type: DEPDESCR
Optional: No
Call by Reference: No ( called with pass by value option)

SOURCE - Source Code of Dependency

Data type: DEPSOURCE
Optional: No
Call by Reference: No ( called with pass by value option)

DOCUMENTATION - Dependency Documentation

Data type: DOC_LANG
Optional: No
Call by Reference: No ( called with pass by value option)

RETURN - Return Parameter

Data type: BAPIRET2
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for BAPI_CLASS_CHARVALUE_LOCAL_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_description  TYPE STANDARD TABLE OF DEPDESCR, "   
lt_source  TYPE STANDARD TABLE OF DEPSOURCE, "   
lv_classtype  TYPE BAPI_CLASS_KEY-CLASSTYPE, "   
lt_documentation  TYPE STANDARD TABLE OF DOC_LANG, "   
lv_characteristic  TYPE CAPIPARMS-CHARACT, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_characteristicvalue  TYPE CAPIPARMS-CH_VALUE, "   
lv_dependencydata  TYPE BAPI_DEPENDENCY_DATA, "   
lv_procorder  TYPE CAPIPARMS-PROC_ORDER, "   
lv_deleteflag  TYPE CAPIFLAG-FLLKENZ, "   SPACE
lv_changenumber  TYPE BAPI1003_KEY-CHANGENUMBER, "   SPACE
lv_keydate  TYPE BAPI_KEY_DATE-KEY_DATE. "   SY-DATUM

  CALL FUNCTION 'BAPI_CLASS_CHARVALUE_LOCAL_DEP'  "Class BAPI: Maintain Local Dependency for Characteristic Value
    EXPORTING
         CLASSNUM = lv_classnum
         CLASSTYPE = lv_classtype
         CHARACTERISTIC = lv_characteristic
         CHARACTERISTICVALUE = lv_characteristicvalue
         DEPENDENCYDATA = lv_dependencydata
         PROCORDER = lv_procorder
         DELETEFLAG = lv_deleteflag
         CHANGENUMBER = lv_changenumber
         KEYDATE = lv_keydate
    TABLES
         DESCRIPTION = lt_description
         SOURCE = lt_source
         DOCUMENTATION = lt_documentation
         RETURN = lt_return
. " BAPI_CLASS_CHARVALUE_LOCAL_DEP




ABAP code using 7.40 inline data declarations to call FM BAPI_CLASS_CHARVALUE_LOCAL_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 PROC_ORDER FROM CAPIPARMS INTO @DATA(ld_procorder).
 
"SELECT single FLLKENZ FROM CAPIFLAG INTO @DATA(ld_deleteflag).
DATA(ld_deleteflag) = ' '.
 
"SELECT single CHANGENUMBER FROM BAPI1003_KEY INTO @DATA(ld_changenumber).
DATA(ld_changenumber) = ' '.
 
"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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!