Menu

SAP Function Module WLB_CALCULATE_SERVICE_LEVEL

Function to calculate the service level

The Function Module WLB_CALCULATE_SERVICE_LEVEL (Function to calculate the service level) is a standard Function Module in SAP ERP and is part of the function group WLB2 within the package WVLB.

Technical Information

Function Module WLB_CALCULATE_SERVICE_LEVEL
Short Text Function to calculate the service level
Function Group WLB2
Package WVLB
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
I_FORECAST_DATE LIKE SY-DATLO Basis date for calculations
I_RELIF LIKE EINA-RELIF If X then take only regular vendor
I_SITE LIKE LFA1-WERKS Site Input
I_VENDOR LIKE LFA1-LIFNR Vendor Input

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
E_SERVICE_LEVEL_TODAY LIKE WBO1-CSERLEV1 Service Level calculation for today
E_SERVICE_LEVEL_TODAY_1 LIKE WBO1-CSERLEV2 Service Level calculation for today + 1
E_SERVICE_LEVEL_TODAY_2 LIKE WBO1-CSERLEV3 Service Level calculation for today + 2

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

These are the TABLE parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
T_SERV_LEVEL TYPE WVLBT_SERV_LVL_ITAB_TYPE Export table of articles used in calculation

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
INVALID_SITE Site not found
INVALID_VENDOR Vendor not found
NO_ARTICLES_FOUND Check for any division by 0