SAP CHCL_REPLACEMENT_PROCESS Function Module for NOTRANSL: Austausch Chargenklasse - Bearbeiten der Umsetzungen









CHCL_REPLACEMENT_PROCESS is a standard chcl replacement process SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Austausch Chargenklasse - Bearbeiten der Umsetzungen 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 chcl replacement process FM, simply by entering the name CHCL_REPLACEMENT_PROCESS into the relevant SAP transaction such as SE37 or SE38.

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



Function CHCL_REPLACEMENT_PROCESS 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 'CHCL_REPLACEMENT_PROCESS'"NOTRANSL: Austausch Chargenklasse - Bearbeiten der Umsetzungen
EXPORTING
I_CHCLNO = "Internal Number: Batch Class Conversion
* I_DB_UPDATE = "Checkbox

IMPORTING
ET_MAT_ESTIM_NO = "Batch Class Conversion - Number of KSSK Records per Material
E_RUN_WITHOUT_ERRORS = "
E_RUN_WITH_WARNINGS = "

EXCEPTIONS
REPLACEMENT_LOCK_FAILED = 1 REPLACEMENT_NOT_EXISTING = 2 REPLACEMENT_HAS_NO_MATERIALS = 3 WRONG_STATUS = 4 LOG_CREATE_FAILURE = 5 LOG_ACCESS_FAILURE = 6 MCHCL_UPDATE_FAILURE = 7 MCHCL_MAT_UPDATE_FAILURE = 8
.



IMPORTING Parameters details for CHCL_REPLACEMENT_PROCESS

I_CHCLNO - Internal Number: Batch Class Conversion

Data type: MCHCL-CHCLNO
Optional: No
Call by Reference: Yes

I_DB_UPDATE - Checkbox

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

EXPORTING Parameters details for CHCL_REPLACEMENT_PROCESS

ET_MAT_ESTIM_NO - Batch Class Conversion - Number of KSSK Records per Material

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

E_RUN_WITHOUT_ERRORS -

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

E_RUN_WITH_WARNINGS -

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

EXCEPTIONS details

REPLACEMENT_LOCK_FAILED -

Data type:
Optional: No
Call by Reference: Yes

REPLACEMENT_NOT_EXISTING -

Data type:
Optional: No
Call by Reference: Yes

REPLACEMENT_HAS_NO_MATERIALS -

Data type:
Optional: No
Call by Reference: Yes

WRONG_STATUS -

Data type:
Optional: No
Call by Reference: Yes

LOG_CREATE_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

LOG_ACCESS_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

MCHCL_UPDATE_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

MCHCL_MAT_UPDATE_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CHCL_REPLACEMENT_PROCESS 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_i_chclno  TYPE MCHCL-CHCLNO, "   
lv_et_mat_estim_no  TYPE CHCL_MAT_ESTIM_NO_T, "   
lv_replacement_lock_failed  TYPE CHCL_MAT_ESTIM_NO_T, "   
lv_i_db_update  TYPE XFELD, "   
lv_e_run_without_errors  TYPE XFELD, "   
lv_replacement_not_existing  TYPE XFELD, "   
lv_e_run_with_warnings  TYPE XFELD, "   
lv_replacement_has_no_materials  TYPE XFELD, "   
lv_wrong_status  TYPE XFELD, "   
lv_log_create_failure  TYPE XFELD, "   
lv_log_access_failure  TYPE XFELD, "   
lv_mchcl_update_failure  TYPE XFELD, "   
lv_mchcl_mat_update_failure  TYPE XFELD. "   

  CALL FUNCTION 'CHCL_REPLACEMENT_PROCESS'  "NOTRANSL: Austausch Chargenklasse - Bearbeiten der Umsetzungen
    EXPORTING
         I_CHCLNO = lv_i_chclno
         I_DB_UPDATE = lv_i_db_update
    IMPORTING
         ET_MAT_ESTIM_NO = lv_et_mat_estim_no
         E_RUN_WITHOUT_ERRORS = lv_e_run_without_errors
         E_RUN_WITH_WARNINGS = lv_e_run_with_warnings
    EXCEPTIONS
        REPLACEMENT_LOCK_FAILED = 1
        REPLACEMENT_NOT_EXISTING = 2
        REPLACEMENT_HAS_NO_MATERIALS = 3
        WRONG_STATUS = 4
        LOG_CREATE_FAILURE = 5
        LOG_ACCESS_FAILURE = 6
        MCHCL_UPDATE_FAILURE = 7
        MCHCL_MAT_UPDATE_FAILURE = 8
. " CHCL_REPLACEMENT_PROCESS




ABAP code using 7.40 inline data declarations to call FM CHCL_REPLACEMENT_PROCESS

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 CHCLNO FROM MCHCL INTO @DATA(ld_i_chclno).
 
 
 
 
 
 
 
 
 
 
 
 
 


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!