SAP QPL2_LOT_LIST_SHOW Function Module for NOTRANSL: Selektion von Prüflosen









QPL2_LOT_LIST_SHOW is a standard qpl2 lot list show 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: Selektion von Prüflosen 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 qpl2 lot list show FM, simply by entering the name QPL2_LOT_LIST_SHOW into the relevant SAP transaction such as SE37 or SE38.

Function Group: QPL2
Program Name: SAPLQPL2
Main Program: SAPLQPL2
Appliation area: Q
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function QPL2_LOT_LIST_SHOW 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 'QPL2_LOT_LIST_SHOW'"NOTRANSL: Selektion von Prüflosen
EXPORTING
* LS_POSNR = "Delivery Item
* EBELN = "Purchase Order Number
* EBELP = "Purchase Order Item
* MATNR = "Material Number
* WERK = "Plant
* CHARGE = "Batch Number
* SHOW_UD = "X and Blank
* LS_VBELN = "Delivery
* AUFNR = "Production Order Number
* ERSTELDAT = "Created on
* VORGANG = "Material Document
* VORGPOS = "Material Doc. Item
* VORGJAHR = "Material Document Year
* VERID = "Production Version
* SA_AUFNR = "Production Version Number

EXCEPTIONS
BAD_OPTIONS = 1 NO_ENTRY = 2
.



IMPORTING Parameters details for QPL2_LOT_LIST_SHOW

LS_POSNR - Delivery Item

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

EBELN - Purchase Order Number

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

EBELP - Purchase Order Item

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

MATNR - Material Number

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

WERK - Plant

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

CHARGE - Batch Number

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

SHOW_UD - X and Blank

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

LS_VBELN - Delivery

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

AUFNR - Production Order Number

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

ERSTELDAT - Created on

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

VORGANG - Material Document

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

VORGPOS - Material Doc. Item

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

VORGJAHR - Material Document Year

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

VERID - Production Version

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

SA_AUFNR - Production Version Number

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

EXCEPTIONS details

BAD_OPTIONS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

NO_ENTRY - No inspection lot found

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

Copy and paste ABAP code example for QPL2_LOT_LIST_SHOW 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_ls_posnr  TYPE QALS-LS_POSNR, "   
lv_bad_options  TYPE QALS, "   
lv_ebeln  TYPE QALS-EBELN, "   
lv_ebelp  TYPE QALS-EBELP, "   
lv_matnr  TYPE QALS-MATNR, "   
lv_werk  TYPE QALS-WERK, "   
lv_charge  TYPE QALS-CHARG, "   
lv_show_ud  TYPE QM00-QKZ, "   
lv_ls_vbeln  TYPE QALS-LS_VBELN, "   
lv_no_entry  TYPE QALS, "   
lv_aufnr  TYPE QALS-AUFNR, "   
lv_ersteldat  TYPE QALS-ERSTELDAT, "   
lv_vorgang  TYPE QALS-MBLNR, "   
lv_vorgpos  TYPE QALS-ZEILE, "   
lv_vorgjahr  TYPE QALS-MJAHR, "   
lv_verid  TYPE QALS-VERID, "   
lv_sa_aufnr  TYPE QALS-SA_AUFNR. "   

  CALL FUNCTION 'QPL2_LOT_LIST_SHOW'  "NOTRANSL: Selektion von Prüflosen
    EXPORTING
         LS_POSNR = lv_ls_posnr
         EBELN = lv_ebeln
         EBELP = lv_ebelp
         MATNR = lv_matnr
         WERK = lv_werk
         CHARGE = lv_charge
         SHOW_UD = lv_show_ud
         LS_VBELN = lv_ls_vbeln
         AUFNR = lv_aufnr
         ERSTELDAT = lv_ersteldat
         VORGANG = lv_vorgang
         VORGPOS = lv_vorgpos
         VORGJAHR = lv_vorgjahr
         VERID = lv_verid
         SA_AUFNR = lv_sa_aufnr
    EXCEPTIONS
        BAD_OPTIONS = 1
        NO_ENTRY = 2
. " QPL2_LOT_LIST_SHOW




ABAP code using 7.40 inline data declarations to call FM QPL2_LOT_LIST_SHOW

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 LS_POSNR FROM QALS INTO @DATA(ld_ls_posnr).
 
 
"SELECT single EBELN FROM QALS INTO @DATA(ld_ebeln).
 
"SELECT single EBELP FROM QALS INTO @DATA(ld_ebelp).
 
"SELECT single MATNR FROM QALS INTO @DATA(ld_matnr).
 
"SELECT single WERK FROM QALS INTO @DATA(ld_werk).
 
"SELECT single CHARG FROM QALS INTO @DATA(ld_charge).
 
"SELECT single QKZ FROM QM00 INTO @DATA(ld_show_ud).
 
"SELECT single LS_VBELN FROM QALS INTO @DATA(ld_ls_vbeln).
 
 
"SELECT single AUFNR FROM QALS INTO @DATA(ld_aufnr).
 
"SELECT single ERSTELDAT FROM QALS INTO @DATA(ld_ersteldat).
 
"SELECT single MBLNR FROM QALS INTO @DATA(ld_vorgang).
 
"SELECT single ZEILE FROM QALS INTO @DATA(ld_vorgpos).
 
"SELECT single MJAHR FROM QALS INTO @DATA(ld_vorgjahr).
 
"SELECT single VERID FROM QALS INTO @DATA(ld_verid).
 
"SELECT single SA_AUFNR FROM QALS INTO @DATA(ld_sa_aufnr).
 


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!