SAP QPLS_MATERIAL_INSPECT Function Module for NOTRANSL: Pflegen der QM-Prüfeinstellungen im Materialstamm









QPLS_MATERIAL_INSPECT is a standard qpls material inspect 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: Pflegen der QM-Prüfeinstellungen im Materialstamm 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 qpls material inspect FM, simply by entering the name QPLS_MATERIAL_INSPECT into the relevant SAP transaction such as SE37 or SE38.

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



Function QPLS_MATERIAL_INSPECT 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 'QPLS_MATERIAL_INSPECT'"NOTRANSL: Pflegen der QM-Prüfeinstellungen im Materialstamm
EXPORTING
FLAG_SHOW = "Indicator : Only display parameter
* I_CREATE_LOTS = "
* I_MASSENAKT = "
* MATNR = "Material number
* MAT_NEW = "Material is being created
* REF_MATNR = "material to be copied
* REF_WERKS = "plant to be copied
* WERKS = "Plant
* I_NO_BUFFER = "Ind. : Data newly read from the database
* I_MARA = "
* I_DOCUMENT = "

IMPORTING
FLAG_UPD = "Indicator : Changes are being made
QMATV = "Indicator : QM is active

TABLES
* XDQMAT = "
* YDQMAT = "
.



IMPORTING Parameters details for QPLS_MATERIAL_INSPECT

FLAG_SHOW - Indicator : Only display parameter

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

I_CREATE_LOTS -

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

I_MASSENAKT -

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

MATNR - Material number

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

MAT_NEW - Material is being created

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

REF_MATNR - material to be copied

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

REF_WERKS - plant to be copied

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

WERKS - Plant

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

I_NO_BUFFER - Ind. : Data newly read from the database

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

I_MARA -

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

I_DOCUMENT -

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

EXPORTING Parameters details for QPLS_MATERIAL_INSPECT

FLAG_UPD - Indicator : Changes are being made

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

QMATV - Indicator : QM is active

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

TABLES Parameters details for QPLS_MATERIAL_INSPECT

XDQMAT -

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

YDQMAT -

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

Copy and paste ABAP code example for QPLS_MATERIAL_INSPECT 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:
lt_xdqmat  TYPE STANDARD TABLE OF QSQMAT, "   
lv_flag_upd  TYPE QM00-QKZ, "   
lv_flag_show  TYPE QM00-QKZ, "   
lv_i_create_lots  TYPE QM00-QKZ, "   
lv_i_massenakt  TYPE QM00-QKZ, "   
lv_matnr  TYPE MARC-MATNR, "   
lv_qmatv  TYPE MARC-QMATV, "   
lt_ydqmat  TYPE STANDARD TABLE OF QSQMAT, "   
lv_mat_new  TYPE QM00-QKZ, "   
lv_ref_matnr  TYPE MARC-MATNR, "   
lv_ref_werks  TYPE MARC-WERKS, "   
lv_werks  TYPE MARC-WERKS, "   
lv_i_no_buffer  TYPE QM00-QKZ, "   
lv_i_mara  TYPE MARA, "   
lv_i_document  TYPE QM00-QKZ. "   

  CALL FUNCTION 'QPLS_MATERIAL_INSPECT'  "NOTRANSL: Pflegen der QM-Prüfeinstellungen im Materialstamm
    EXPORTING
         FLAG_SHOW = lv_flag_show
         I_CREATE_LOTS = lv_i_create_lots
         I_MASSENAKT = lv_i_massenakt
         MATNR = lv_matnr
         MAT_NEW = lv_mat_new
         REF_MATNR = lv_ref_matnr
         REF_WERKS = lv_ref_werks
         WERKS = lv_werks
         I_NO_BUFFER = lv_i_no_buffer
         I_MARA = lv_i_mara
         I_DOCUMENT = lv_i_document
    IMPORTING
         FLAG_UPD = lv_flag_upd
         QMATV = lv_qmatv
    TABLES
         XDQMAT = lt_xdqmat
         YDQMAT = lt_ydqmat
. " QPLS_MATERIAL_INSPECT




ABAP code using 7.40 inline data declarations to call FM QPLS_MATERIAL_INSPECT

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 QKZ FROM QM00 INTO @DATA(ld_flag_upd).
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_flag_show).
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_create_lots).
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_massenakt).
 
"SELECT single MATNR FROM MARC INTO @DATA(ld_matnr).
 
"SELECT single QMATV FROM MARC INTO @DATA(ld_qmatv).
 
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_mat_new).
 
"SELECT single MATNR FROM MARC INTO @DATA(ld_ref_matnr).
 
"SELECT single WERKS FROM MARC INTO @DATA(ld_ref_werks).
 
"SELECT single WERKS FROM MARC INTO @DATA(ld_werks).
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_no_buffer).
 
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_i_document).
 


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!