SAP EXIT_SAPLWLB2_005 Function Module for User Exit for Checking Upper Limit of Multiple Restrictions









EXIT_SAPLWLB2_005 is a standard exit saplwlb2 005 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 for Checking Upper Limit of Multiple Restrictions 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 saplwlb2 005 FM, simply by entering the name EXIT_SAPLWLB2_005 into the relevant SAP transaction such as SE37 or SE38.

Function Group: XWLB
Program Name: SAPLXWLB
Main Program:
Appliation area: W
Release date: 06-Mar-1998
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EXIT_SAPLWLB2_005 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_SAPLWLB2_005'"User Exit for Checking Upper Limit of Multiple Restrictions
EXPORTING
* BORESTRI = "Restriction Profile
* CURMNG_SAVE = "Multiple of the Next Upper Limit (Quantity)
* CURVAL_SAVE = "Multiple of the Next Upper Limit (Value)
* CURMNG = "Current Quantity
* CURVAL = "Current Value
* O_TOO_FAR = "Previous Optimizing Status

CHANGING
L_TOO_FAR = "Current Check Result (Above or Not)

EXCEPTIONS
UNKNOW_INPUT = 1
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
WBO2_READ NOTRANSL: Lese WBO2 Tabelle gepuffert ( Protokoll auto. Bestellbündelung W
WEEK_GET_NR_OF_WORKDAYS NOTRANSL: alte Version --> 'WLB3_GET_NUMBER_OF_WORKDAYS' verwenden!!!!!!!
WLB_AUTOLB_1_SELECT_RECS NOTRANSL: Selects PR's and PO's to be used in the PO Optimization process.
WLB_AUTOLB_2_UPDATE_RECS NOTRANSL: Bestellbündelungsdaten um die Stammdaten erweitern (WLB3).
WLB_AUTOLB_3_BUILD_RECS NOTRANSL: Build vendor load by increasing order quantity or adding items t
WLB_CALCULATE_CONSUMPTION NOTRANSL: Function to calculate the consumption value
WLB_CALCULATE_FORECAST NOTRANSL: Ab Rel. 4.6B wird der neue FB WLB3_CALC_FORECAST benutzt
WLB_CALCULATE_LAST_DAY NOTRANSL: Function to calculate the last day of the period
WLB_CALCULATE_PERIOD_DAYS NOTRANSL: Function to calculate the number of days per period
WLB_CALCULATE_QOH NOTRANSL: Function to calculate the quantity on hand
WLB_CALCULATE_QOO NOTRANSL: Function to calculate the quantity on order
WLB_CALCULATE_ROI NOTRANSL: Calculates Return on Investment (ROI)
WLB_CALCULATE_SALES_PRICE NOTRANSL: Function to read the sales price
WLB_CALCULATE_SERVICE_LEVEL NOTRANSL: Function to calculate the service level
WLB_DEL_OLD_SIM_LOGGING NOTRANSL: Löschen veralteter Einträge aus dem Logbuch zur autom. Bestellop
WLB_QOO_MDBS_BUF NOTRANSL: Funktionsbaustein zum Puffern des Zugriffs auf die MDBS
WLB_RANGE_OF_COVERAGE NOTRANSL: Function to calculate range of coverage
WLB_READ_RESTRICTIONS NOTRANSL: Bestimme Restriktionsprofil mit seiner Definition
WLB_RETURN_UNIT_FAMILY NOTRANSL: Function to return the unit family
WLB_RETURN_UNIT_TYPE NOTRANSL: Function to return the unit type
WLB_WRITE_SIM_LOGGING NOTRANSL: Create Simulation Header and Detail table entries.

IMPORTING Parameters details for EXIT_SAPLWLB2_005

BORESTRI - Restriction Profile

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

CURMNG_SAVE - Multiple of the Next Upper Limit (Quantity)

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

CURVAL_SAVE - Multiple of the Next Upper Limit (Value)

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

CURMNG - Current Quantity

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

CURVAL - Current Value

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

O_TOO_FAR - Previous Optimizing Status

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

CHANGING Parameters details for EXIT_SAPLWLB2_005

L_TOO_FAR - Current Check Result (Above or Not)

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

EXCEPTIONS details

UNKNOW_INPUT - Incorrect Input

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

Copy and paste ABAP code example for EXIT_SAPLWLB2_005 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_borestri  TYPE TWBO1-BORESTRI, "   
lv_l_too_far  TYPE C, "   
lv_unknow_input  TYPE C, "   
lv_curmng_save  TYPE TWBO1-BORESMNG, "   
lv_curval_save  TYPE TWBO1-BORESVAL, "   
lv_curmng  TYPE EKPO-MENGE, "   
lv_curval  TYPE TWBO1-BORESVAL, "   
lv_o_too_far  TYPE C. "   

  CALL FUNCTION 'EXIT_SAPLWLB2_005'  "User Exit for Checking Upper Limit of Multiple Restrictions
    EXPORTING
         BORESTRI = lv_borestri
         CURMNG_SAVE = lv_curmng_save
         CURVAL_SAVE = lv_curval_save
         CURMNG = lv_curmng
         CURVAL = lv_curval
         O_TOO_FAR = lv_o_too_far
    CHANGING
         L_TOO_FAR = lv_l_too_far
    EXCEPTIONS
        UNKNOW_INPUT = 1
. " EXIT_SAPLWLB2_005




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLWLB2_005

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 BORESTRI FROM TWBO1 INTO @DATA(ld_borestri).
 
 
 
"SELECT single BORESMNG FROM TWBO1 INTO @DATA(ld_curmng_save).
 
"SELECT single BORESVAL FROM TWBO1 INTO @DATA(ld_curval_save).
 
"SELECT single MENGE FROM EKPO INTO @DATA(ld_curmng).
 
"SELECT single BORESVAL FROM TWBO1 INTO @DATA(ld_curval).
 
 


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!