SAP MILL_PC_CHECK_CHARG Function Module for NOTRANSL: Konsistenzprüfung der Charge









MILL_PC_CHECK_CHARG is a standard mill pc check charg 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: Konsistenzprüfung der Charge 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 mill pc check charg FM, simply by entering the name MILL_PC_CHECK_CHARG into the relevant SAP transaction such as SE37 or SE38.

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



Function MILL_PC_CHECK_CHARG 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 'MILL_PC_CHECK_CHARG'"NOTRANSL: Konsistenzprüfung der Charge
EXPORTING
XMATNR = "Material Number
XWERKS = "Plant
XCHARG = "Batch Number
XDARK = "Flag ( 'X' or ' ' )
XREF_CHARG_FLG = "Checkbox

IMPORTING
BATCH_EXISTS = "Checkbox

EXCEPTIONS
MATERIAL_NOT_FOUND = 1 NO_BATCH_HANDLING = 2 INPUT_DATA_INCOMPLETE = 3
.



IMPORTING Parameters details for MILL_PC_CHECK_CHARG

XMATNR - Material Number

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

XWERKS - Plant

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

XCHARG - Batch Number

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

XDARK - Flag ( 'X' or ' ' )

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

XREF_CHARG_FLG - Checkbox

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

EXPORTING Parameters details for MILL_PC_CHECK_CHARG

BATCH_EXISTS - Checkbox

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

EXCEPTIONS details

MATERIAL_NOT_FOUND -

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

NO_BATCH_HANDLING -

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

INPUT_DATA_INCOMPLETE -

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

Copy and paste ABAP code example for MILL_PC_CHECK_CHARG 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_xmatnr  TYPE MTCOM-MATNR, "   
lv_batch_exists  TYPE XFELD, "   
lv_material_not_found  TYPE XFELD, "   
lv_xwerks  TYPE MTCOM-WERKS, "   
lv_no_batch_handling  TYPE MTCOM, "   
lv_xcharg  TYPE MCHA-CHARG, "   
lv_input_data_incomplete  TYPE MCHA, "   
lv_xdark  TYPE MOB01-XDARK, "   
lv_xref_charg_flg  TYPE XFELD. "   

  CALL FUNCTION 'MILL_PC_CHECK_CHARG'  "NOTRANSL: Konsistenzprüfung der Charge
    EXPORTING
         XMATNR = lv_xmatnr
         XWERKS = lv_xwerks
         XCHARG = lv_xcharg
         XDARK = lv_xdark
         XREF_CHARG_FLG = lv_xref_charg_flg
    IMPORTING
         BATCH_EXISTS = lv_batch_exists
    EXCEPTIONS
        MATERIAL_NOT_FOUND = 1
        NO_BATCH_HANDLING = 2
        INPUT_DATA_INCOMPLETE = 3
. " MILL_PC_CHECK_CHARG




ABAP code using 7.40 inline data declarations to call FM MILL_PC_CHECK_CHARG

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 MATNR FROM MTCOM INTO @DATA(ld_xmatnr).
 
 
 
"SELECT single WERKS FROM MTCOM INTO @DATA(ld_xwerks).
 
 
"SELECT single CHARG FROM MCHA INTO @DATA(ld_xcharg).
 
 
"SELECT single XDARK FROM MOB01 INTO @DATA(ld_xdark).
 
 


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!