SAP KERV_CALC_CHA_COPACLV Function Module for
KERV_CALC_CHA_COPACLV is a standard kerv calc cha copaclv SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 kerv calc cha copaclv FM, simply by entering the name KERV_CALC_CHA_COPACLV into the relevant SAP transaction such as SE37 or SE38.
Function Group: KERV
Program Name: SAPLKERV
Main Program:
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function KERV_CALC_CHA_COPACLV 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 'KERV_CALC_CHA_COPACLV'".
EXPORTING
I_KNDNR = "
I_VKORG = "
I_VTWEG = "
I_SPART = "
I_PERIO = "
I_DATUM = "
IMPORTING
E_CLT = "
IMPORTING Parameters details for KERV_CALC_CHA_COPACLV
I_KNDNR -
Data type: CEST0-KNDNROptional: No
Call by Reference: No ( called with pass by value option)
I_VKORG -
Data type: CEST0-VKORGOptional: No
Call by Reference: No ( called with pass by value option)
I_VTWEG -
Data type: CEST0-VTWEGOptional: No
Call by Reference: No ( called with pass by value option)
I_SPART -
Data type: CEST0-SPARTOptional: No
Call by Reference: No ( called with pass by value option)
I_PERIO -
Data type: CEST0-PERIOOptional: No
Call by Reference: No ( called with pass by value option)
I_DATUM -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for KERV_CALC_CHA_COPACLV
E_CLT -
Data type: CEBWCHA-COPACLTOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for KERV_CALC_CHA_COPACLV 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_e_clt | TYPE CEBWCHA-COPACLT, " | |||
| lv_i_kndnr | TYPE CEST0-KNDNR, " | |||
| lv_i_vkorg | TYPE CEST0-VKORG, " | |||
| lv_i_vtweg | TYPE CEST0-VTWEG, " | |||
| lv_i_spart | TYPE CEST0-SPART, " | |||
| lv_i_perio | TYPE CEST0-PERIO, " | |||
| lv_i_datum | TYPE SY-DATUM. " |
|   CALL FUNCTION 'KERV_CALC_CHA_COPACLV' " |
| EXPORTING | ||
| I_KNDNR | = lv_i_kndnr | |
| I_VKORG | = lv_i_vkorg | |
| I_VTWEG | = lv_i_vtweg | |
| I_SPART | = lv_i_spart | |
| I_PERIO | = lv_i_perio | |
| I_DATUM | = lv_i_datum | |
| IMPORTING | ||
| E_CLT | = lv_e_clt | |
| . " KERV_CALC_CHA_COPACLV | ||
ABAP code using 7.40 inline data declarations to call FM KERV_CALC_CHA_COPACLV
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 COPACLT FROM CEBWCHA INTO @DATA(ld_e_clt). | ||||
| "SELECT single KNDNR FROM CEST0 INTO @DATA(ld_i_kndnr). | ||||
| "SELECT single VKORG FROM CEST0 INTO @DATA(ld_i_vkorg). | ||||
| "SELECT single VTWEG FROM CEST0 INTO @DATA(ld_i_vtweg). | ||||
| "SELECT single SPART FROM CEST0 INTO @DATA(ld_i_spart). | ||||
| "SELECT single PERIO FROM CEST0 INTO @DATA(ld_i_perio). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_datum). | ||||
Search for further information about these or an SAP related objects