SAP QMSP_COMPARE_QM_BATCH_VALUES Function Module for NOTRANSL: Vergleicht Werte aus der Charge mit den QM-Ergebnissen









QMSP_COMPARE_QM_BATCH_VALUES is a standard qmsp compare qm batch values 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: Vergleicht Werte aus der Charge mit den QM-Ergebnissen 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 qmsp compare qm batch values FM, simply by entering the name QMSP_COMPARE_QM_BATCH_VALUES into the relevant SAP transaction such as SE37 or SE38.

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



Function QMSP_COMPARE_QM_BATCH_VALUES 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 'QMSP_COMPARE_QM_BATCH_VALUES'"NOTRANSL: Vergleicht Werte aus der Charge mit den QM-Ergebnissen
EXPORTING
I_CHARG = "Batch
I_MATNR = "Material
I_WERKS = "Plant
* WINX1_15 = 1 "
* WINX2_15 = 105 "
* WINY1_15 = 7 "
* WINY2_15 = 15 "
* I_CHECK_ONLY = "Ind.: Consistency check only
* I_NO_DIALOG = "Ind.: No dialog --> Long text

IMPORTING
E_CANCEL = "Ind.: Dialog box was canceled

TABLES
T_QAMKRTAB = "Table with characteristic results

EXCEPTIONS
NO_SPEC = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLQMSP_001 Customer Exit for Reading Specification
EXIT_SAPLQMSP_002 Customer Exit for Characteristic Valuation of Batch Classification
EXIT_SAPLQMSP_003 Customer Exit Based on Characteristic Valuation

IMPORTING Parameters details for QMSP_COMPARE_QM_BATCH_VALUES

I_CHARG - Batch

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

I_MATNR - Material

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

I_WERKS - Plant

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

WINX1_15 -

Data type: SY-WINX1
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

WINX2_15 -

Data type: SY-WINX2
Default: 105
Optional: Yes
Call by Reference: No ( called with pass by value option)

WINY1_15 -

Data type: SY-WINY1
Default: 7
Optional: Yes
Call by Reference: No ( called with pass by value option)

WINY2_15 -

Data type: SY-WINY2
Default: 15
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CHECK_ONLY - Ind.: Consistency check only

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

I_NO_DIALOG - Ind.: No dialog --> Long text

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

EXPORTING Parameters details for QMSP_COMPARE_QM_BATCH_VALUES

E_CANCEL - Ind.: Dialog box was canceled

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

TABLES Parameters details for QMSP_COMPARE_QM_BATCH_VALUES

T_QAMKRTAB - Table with characteristic results

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

EXCEPTIONS details

NO_SPEC - No Specification

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

Copy and paste ABAP code example for QMSP_COMPARE_QM_BATCH_VALUES 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_charg  TYPE MCHB-CHARG, "   
lv_no_spec  TYPE MCHB, "   
lv_e_cancel  TYPE QKZ, "   
lt_t_qamkrtab  TYPE STANDARD TABLE OF QAMKR, "   
lv_i_matnr  TYPE MCHB-MATNR, "   
lv_i_werks  TYPE QPMK-WERKS, "   
lv_winx1_15  TYPE SY-WINX1, "   1
lv_winx2_15  TYPE SY-WINX2, "   105
lv_winy1_15  TYPE SY-WINY1, "   7
lv_winy2_15  TYPE SY-WINY2, "   15
lv_i_check_only  TYPE QM00-QKZ, "   
lv_i_no_dialog  TYPE QM00-QKZ. "   

  CALL FUNCTION 'QMSP_COMPARE_QM_BATCH_VALUES'  "NOTRANSL: Vergleicht Werte aus der Charge mit den QM-Ergebnissen
    EXPORTING
         I_CHARG = lv_i_charg
         I_MATNR = lv_i_matnr
         I_WERKS = lv_i_werks
         WINX1_15 = lv_winx1_15
         WINX2_15 = lv_winx2_15
         WINY1_15 = lv_winy1_15
         WINY2_15 = lv_winy2_15
         I_CHECK_ONLY = lv_i_check_only
         I_NO_DIALOG = lv_i_no_dialog
    IMPORTING
         E_CANCEL = lv_e_cancel
    TABLES
         T_QAMKRTAB = lt_t_qamkrtab
    EXCEPTIONS
        NO_SPEC = 1
. " QMSP_COMPARE_QM_BATCH_VALUES




ABAP code using 7.40 inline data declarations to call FM QMSP_COMPARE_QM_BATCH_VALUES

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 CHARG FROM MCHB INTO @DATA(ld_i_charg).
 
 
 
 
"SELECT single MATNR FROM MCHB INTO @DATA(ld_i_matnr).
 
"SELECT single WERKS FROM QPMK INTO @DATA(ld_i_werks).
 
"SELECT single WINX1 FROM SY INTO @DATA(ld_winx1_15).
DATA(ld_winx1_15) = 1.
 
"SELECT single WINX2 FROM SY INTO @DATA(ld_winx2_15).
DATA(ld_winx2_15) = 105.
 
"SELECT single WINY1 FROM SY INTO @DATA(ld_winy1_15).
DATA(ld_winy1_15) = 7.
 
"SELECT single WINY2 FROM SY INTO @DATA(ld_winy2_15).
DATA(ld_winy2_15) = 15.
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_check_only).
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_no_dialog).
 


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!