SAP EXIT_SAPLQUOT_002 Function Module for User exit: SD Product Allocation, Change Schedule Line









EXIT_SAPLQUOT_002 is a standard exit saplquot 002 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for User exit: SD Product Allocation, Change Schedule Line 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 exit saplquot 002 FM, simply by entering the name EXIT_SAPLQUOT_002 into the relevant SAP transaction such as SE37 or SE38.

Function Group: XVZ1
Program Name: SAPLXVZ1
Main Program:
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EXIT_SAPLQUOT_002 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 'EXIT_SAPLQUOT_002'"User exit: SD Product Allocation, Change Schedule Line
EXPORTING
I_POSNR = "Checked Item in Order
I_MATNR = "Material Number from the Order
I_KOSCH = "Product Allocation Determination Procedure
I_GSTRU = "Info Structure

TABLES
T_MDVEX = "Product Allocation: Availability
* T_OLDQT = "Product Allocation: Comm. Structur for DB Change
T_QTKEY = "Key Fields of the Info Structure
T_QUOTA = "Product Allocation: Transfer Structure
T_OLD_MDVEX = "Availablity Before Product Allocation Check
* T_QTCOR = "Correction Quantities
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
QUOTA_ALLOCATION_INIT NOTRANSL: ATP_C:Initialisierung der Kontingentierung; Customizingeinstellu
QUOTA_CHECK NOTRANSL: CUST: Überprüfung einer Kontingentierungseinstellung
QUOTA_CHECK_STRUCT NOTRANSL: CUST: Überprüfung ob Info-Struktur für die Kontingentierung geei
QUOTA_DATE_CHECK NOTRANSL: CUST: Kontrolle des Datums: Ende einer Periode
QUOTA_DISPLAY_CHECK_RESULTS NOTRANSL: ATP_D:Anzeige von ATP und Kontingenten
QUOTA_DISPLAY_INIT ATP_D: Prepare display of used product allocation in the order
QUOTA_DISPLAY_RESULTS_ATP NOTRANSL: ATP_D:Kontingentierungsereignisse vom ATP-Server abholen
QUOTA_INFO_CONTENT NOTRANSL: CUST: Info-Struktur mit allg. Hierarchie bearbeiten (Sammelkonti
QUOTA_MASK_GET NOTRANSL: CUST: Maskenzeichen der Struktur liefern
QUOTA_OBJECT_FIND NOTRANSL: ATP_C:Merkmalskombinationen für den ATP-Server abstrahieren
QUOTA_ORDER_DATA_READ NOTRANSL: ATP_C:Anwendung: Merkmalswerte aus dem Auftrag bestimmen
QUOTA_PERIODS_DETERMINE NOTRANSL: ATP_C:Periode eines Datums bestimmen
QUOTA_QUANTITY_CHECK NOTRANSL: ATP_S:Freie Kontingente für Kunde/Material bestimmen
QUOTA_QUANTITY_CHECK_ATP NOTRANSL: ATP_S:Freie Kontingente für Kunde/Material bestimmen
QUOTA_SHARED_BUFFER_DELETE NOTRANSL: INIT: Periodentabelle wird aus dem Shared Buffer gelöscht
QUOTA_VECTOR_CALC NOTRANSL: PLAN: Verrechung der Kontingentbelegung in Zeitintervall für fle

IMPORTING Parameters details for EXIT_SAPLQUOT_002

I_POSNR - Checked Item in Order

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

I_MATNR - Material Number from the Order

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

I_KOSCH - Product Allocation Determination Procedure

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

I_GSTRU - Info Structure

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

TABLES Parameters details for EXIT_SAPLQUOT_002

T_MDVEX - Product Allocation: Availability

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

T_OLDQT - Product Allocation: Comm. Structur for DB Change

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

T_QTKEY - Key Fields of the Info Structure

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

T_QUOTA - Product Allocation: Transfer Structure

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

T_OLD_MDVEX - Availablity Before Product Allocation Check

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

T_QTCOR - Correction Quantities

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

Copy and paste ABAP code example for EXIT_SAPLQUOT_002 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_posnr  TYPE VBAP-POSNR, "   
lt_t_mdvex  TYPE STANDARD TABLE OF QUOT03, "   
lv_i_matnr  TYPE VBAP-MATNR, "   
lt_t_oldqt  TYPE STANDARD TABLE OF QUOT04, "   
lv_i_kosch  TYPE T190-KOSCH, "   
lt_t_qtkey  TYPE STANDARD TABLE OF QV03V, "   
lv_i_gstru  TYPE IV03V-GSTRU, "   
lt_t_quota  TYPE STANDARD TABLE OF QUOT05, "   
lt_t_old_mdvex  TYPE STANDARD TABLE OF QUOT03, "   
lt_t_qtcor  TYPE STANDARD TABLE OF QUOTCOR. "   

  CALL FUNCTION 'EXIT_SAPLQUOT_002'  "User exit: SD Product Allocation, Change Schedule Line
    EXPORTING
         I_POSNR = lv_i_posnr
         I_MATNR = lv_i_matnr
         I_KOSCH = lv_i_kosch
         I_GSTRU = lv_i_gstru
    TABLES
         T_MDVEX = lt_t_mdvex
         T_OLDQT = lt_t_oldqt
         T_QTKEY = lt_t_qtkey
         T_QUOTA = lt_t_quota
         T_OLD_MDVEX = lt_t_old_mdvex
         T_QTCOR = lt_t_qtcor
. " EXIT_SAPLQUOT_002




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLQUOT_002

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 POSNR FROM VBAP INTO @DATA(ld_i_posnr).
 
 
"SELECT single MATNR FROM VBAP INTO @DATA(ld_i_matnr).
 
 
"SELECT single KOSCH FROM T190 INTO @DATA(ld_i_kosch).
 
 
"SELECT single GSTRU FROM IV03V INTO @DATA(ld_i_gstru).
 
 
 
 


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!