SAP QPBU_GOODSRECEIPT_LOT_POSTING Function Module for









QPBU_GOODSRECEIPT_LOT_POSTING is a standard qpbu goodsreceipt lot posting SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 qpbu goodsreceipt lot posting FM, simply by entering the name QPBU_GOODSRECEIPT_LOT_POSTING into the relevant SAP transaction such as SE37 or SE38.

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



Function QPBU_GOODSRECEIPT_LOT_POSTING 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 'QPBU_GOODSRECEIPT_LOT_POSTING'"
EXPORTING
MBLNR = "Document number
MJAHR = "Document year
* I_MEMORY_ID_SN = "Character field length 50
* I_BAPI = "

TABLES
MSEGTAB = "Internal table with items
.




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_SAPLQPL1_001 Predefine Selection Parameters for Task List Selection from Inspection Lot
EXIT_SAPLQPL1_002 Customer Function for Changing QALS Work Area
EXIT_SAPLQPL1_003 Sample Calculation for Inspection Lots Without Chars (Object Type QL3)
EXIT_SAPLQPL1_004 Transfer of Inspection Lot Data to User Screen
EXIT_SAPLQPL1_005 Inspection Type Determination for Variant 01
EXIT_SAPLQPL1_006 Transfer of Inspection Lot Data from User Screen
EXIT_SAPLQPL1_007 Assign Order Type for QM Order

IMPORTING Parameters details for QPBU_GOODSRECEIPT_LOT_POSTING

MBLNR - Document number

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

MJAHR - Document year

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

I_MEMORY_ID_SN - Character field length 50

Data type: CHAR_50
Optional: Yes
Call by Reference: Yes

I_BAPI -

Data type: QKZ
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for QPBU_GOODSRECEIPT_LOT_POSTING

MSEGTAB - Internal table with items

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

Copy and paste ABAP code example for QPBU_GOODSRECEIPT_LOT_POSTING 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_mblnr  TYPE MSEG-MBLNR, "   
lt_msegtab  TYPE STANDARD TABLE OF MBQSSZ, "   
lv_mjahr  TYPE MSEG-MJAHR, "   
lv_i_memory_id_sn  TYPE CHAR_50, "   
lv_i_bapi  TYPE QKZ. "   

  CALL FUNCTION 'QPBU_GOODSRECEIPT_LOT_POSTING'  "
    EXPORTING
         MBLNR = lv_mblnr
         MJAHR = lv_mjahr
         I_MEMORY_ID_SN = lv_i_memory_id_sn
         I_BAPI = lv_i_bapi
    TABLES
         MSEGTAB = lt_msegtab
. " QPBU_GOODSRECEIPT_LOT_POSTING




ABAP code using 7.40 inline data declarations to call FM QPBU_GOODSRECEIPT_LOT_POSTING

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 MBLNR FROM MSEG INTO @DATA(ld_mblnr).
 
 
"SELECT single MJAHR FROM MSEG INTO @DATA(ld_mjahr).
 
 
 


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!