SAP CKMC_SETTLE_MATERIAL Function Module for









CKMC_SETTLE_MATERIAL is a standard ckmc settle material 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 ckmc settle material FM, simply by entering the name CKMC_SETTLE_MATERIAL into the relevant SAP transaction such as SE37 or SE38.

Function Group: CKMC
Program Name: SAPLCKMC
Main Program: SAPLCKMC
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CKMC_SETTLE_MATERIAL 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 'CKMC_SETTLE_MATERIAL'"
EXPORTING
* I_VORGANG = "Calculation Function
* I_NO_PBPOPO = ' ' "
* IF_APPLICATION_STR = "
* IF_MATERIAL = "
IF_CKMLPP = "
IF_KUMBSTD = "
* IT_CKMLKEPH_KUM = "
* IF_PREVPVP = "
* I_PREVMON_STATUS = "
* I_QUANTITY = ' ' "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')

CHANGING
CF_CKMLCR = "
* CT_CKMLKEPH = "
.



IMPORTING Parameters details for CKMC_SETTLE_MATERIAL

I_VORGANG - Calculation Function

Data type: CKM0_VORGANG
Optional: Yes
Call by Reference: Yes

I_NO_PBPOPO -

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

IF_APPLICATION_STR -

Data type: CKMM_F_STRG
Optional: Yes
Call by Reference: Yes

IF_MATERIAL -

Data type: CKMV6_MATERIAL_STR
Optional: Yes
Call by Reference: Yes

IF_CKMLPP -

Data type: CKMLPP
Optional: No
Call by Reference: Yes

IF_KUMBSTD -

Data type: CKMC_F_KUMULIERTER_BESTAND
Optional: No
Call by Reference: Yes

IT_CKMLKEPH_KUM -

Data type: MLCCS_T_KEPH
Optional: Yes
Call by Reference: Yes

IF_PREVPVP -

Data type: CKMC_F_PREVPVP
Optional: Yes
Call by Reference: Yes

I_PREVMON_STATUS -

Data type: CKMLPP-STATUS
Optional: Yes
Call by Reference: Yes

I_QUANTITY - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')

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

CHANGING Parameters details for CKMC_SETTLE_MATERIAL

CF_CKMLCR -

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

CT_CKMLKEPH -

Data type: MLCCS_T_KEPH
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for CKMC_SETTLE_MATERIAL 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_cf_ckmlcr  TYPE CKMLCR, "   
lv_i_vorgang  TYPE CKM0_VORGANG, "   
lv_i_no_pbpopo  TYPE C, "   SPACE
lv_ct_ckmlkeph  TYPE MLCCS_T_KEPH, "   
lv_if_application_str  TYPE CKMM_F_STRG, "   
lv_if_material  TYPE CKMV6_MATERIAL_STR, "   
lv_if_ckmlpp  TYPE CKMLPP, "   
lv_if_kumbstd  TYPE CKMC_F_KUMULIERTER_BESTAND, "   
lv_it_ckmlkeph_kum  TYPE MLCCS_T_KEPH, "   
lv_if_prevpvp  TYPE CKMC_F_PREVPVP, "   
lv_i_prevmon_status  TYPE CKMLPP-STATUS, "   
lv_i_quantity  TYPE BOOLE_D. "   SPACE

  CALL FUNCTION 'CKMC_SETTLE_MATERIAL'  "
    EXPORTING
         I_VORGANG = lv_i_vorgang
         I_NO_PBPOPO = lv_i_no_pbpopo
         IF_APPLICATION_STR = lv_if_application_str
         IF_MATERIAL = lv_if_material
         IF_CKMLPP = lv_if_ckmlpp
         IF_KUMBSTD = lv_if_kumbstd
         IT_CKMLKEPH_KUM = lv_it_ckmlkeph_kum
         IF_PREVPVP = lv_if_prevpvp
         I_PREVMON_STATUS = lv_i_prevmon_status
         I_QUANTITY = lv_i_quantity
    CHANGING
         CF_CKMLCR = lv_cf_ckmlcr
         CT_CKMLKEPH = lv_ct_ckmlkeph
. " CKMC_SETTLE_MATERIAL




ABAP code using 7.40 inline data declarations to call FM CKMC_SETTLE_MATERIAL

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.

 
 
DATA(ld_i_no_pbpopo) = ' '.
 
 
 
 
 
 
 
 
"SELECT single STATUS FROM CKMLPP INTO @DATA(ld_i_prevmon_status).
 
DATA(ld_i_quantity) = ' '.
 


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!