SAP EXIT_SAPLWLBA_004 Function Module for Determination of Plant Data









EXIT_SAPLWLBA_004 is a standard exit saplwlba 004 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determination of Plant Data 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 saplwlba 004 FM, simply by entering the name EXIT_SAPLWLBA_004 into the relevant SAP transaction such as SE37 or SE38.

Function Group: XWVLB00A
Program Name: SAPLXWVLB00A
Main Program:
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EXIT_SAPLWLBA_004 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_SAPLWLBA_004'"Determination of Plant Data
EXPORTING
I_ONLY_LB_PLANTS = "Indicates: Load Buildiong Plants Only
I_PLANT_TYPE = "Plant Category
I_RECORD_TESTS = "Transfer Structure
I_OPER_EKORGS = "Indicates: Operational Purchasing Organizations
I_BEFORE = "Indicates: Call Before Default Algorithm

CHANGING
CH_READY = "Indicates: Determination of Data Complete

TABLES
I_R_WERKS = "Range for Plant
I_T_T024Z_VALID = "Purchasing Organizations
I_T_T024E_VALID = "Purchasing Organizations
E_T_PLANTS = "Plant Data
CH_T_MSSG_LB = "Message Table
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
WLBA_CHECK_CUSTOM NOTRANSL: Überprüfung der Customizingeinstellungen
WLBA_CHECK_TWBO0 NOTRANSL: Überprüfung der Einstellungen der Tabelle twbo0
WLBA_DETERMINE_EKORGS NOTRANSL: Einkaufsorganisationen bestimmen
WLBA_DETERMINE_LB_COUPLES Determination of load building combinations
WLBA_DETERMINE_PLANT_DATA NOTRANSL: Bestimmung der Werksdaten aus T001W, T399D und WRF1
WLBA_DETERMINE_VENDOR_DATA NOTRANSL: Bestimmung der Lieferantendaten für die autom. Bestellbündelung
WLBA_LOAD_AND_CHECK_TWBO0 NOTRANSL: Laden und Überprüfen der Tabelle twbo0

IMPORTING Parameters details for EXIT_SAPLWLBA_004

I_ONLY_LB_PLANTS - Indicates: Load Buildiong Plants Only

Data type: C
Optional: No
Call by Reference: Yes

I_PLANT_TYPE - Plant Category

Data type: WLB0013-PLANT_TYPE
Optional: No
Call by Reference: Yes

I_RECORD_TESTS - Transfer Structure

Data type: WLB000A-WLB_CHECK_A_WERK
Optional: No
Call by Reference: Yes

I_OPER_EKORGS - Indicates: Operational Purchasing Organizations

Data type: C
Optional: No
Call by Reference: Yes

I_BEFORE - Indicates: Call Before Default Algorithm

Data type: C
Optional: No
Call by Reference: Yes

CHANGING Parameters details for EXIT_SAPLWLBA_004

CH_READY - Indicates: Determination of Data Complete

Data type: C
Optional: No
Call by Reference: Yes

TABLES Parameters details for EXIT_SAPLWLBA_004

I_R_WERKS - Range for Plant

Data type: WVLBT_T_S_EKPO_WERKS
Optional: No
Call by Reference: Yes

I_T_T024Z_VALID - Purchasing Organizations

Data type: T024Z
Optional: No
Call by Reference: Yes

I_T_T024E_VALID - Purchasing Organizations

Data type: T024E
Optional: No
Call by Reference: Yes

E_T_PLANTS - Plant Data

Data type: WVLBT_T_WLB3_PLANTS_TYPE
Optional: No
Call by Reference: Yes

CH_T_MSSG_LB - Message Table

Data type: WVLBA_T_MSSG_LB
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for EXIT_SAPLWLBA_004 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_ch_ready  TYPE C, "   
lt_i_r_werks  TYPE STANDARD TABLE OF WVLBT_T_S_EKPO_WERKS, "   
lv_i_only_lb_plants  TYPE C, "   
lv_i_plant_type  TYPE WLB0013-PLANT_TYPE, "   
lt_i_t_t024z_valid  TYPE STANDARD TABLE OF T024Z, "   
lv_i_record_tests  TYPE WLB000A-WLB_CHECK_A_WERK, "   
lt_i_t_t024e_valid  TYPE STANDARD TABLE OF T024E, "   
lt_e_t_plants  TYPE STANDARD TABLE OF WVLBT_T_WLB3_PLANTS_TYPE, "   
lv_i_oper_ekorgs  TYPE C, "   
lv_i_before  TYPE C, "   
lt_ch_t_mssg_lb  TYPE STANDARD TABLE OF WVLBA_T_MSSG_LB. "   

  CALL FUNCTION 'EXIT_SAPLWLBA_004'  "Determination of Plant Data
    EXPORTING
         I_ONLY_LB_PLANTS = lv_i_only_lb_plants
         I_PLANT_TYPE = lv_i_plant_type
         I_RECORD_TESTS = lv_i_record_tests
         I_OPER_EKORGS = lv_i_oper_ekorgs
         I_BEFORE = lv_i_before
    CHANGING
         CH_READY = lv_ch_ready
    TABLES
         I_R_WERKS = lt_i_r_werks
         I_T_T024Z_VALID = lt_i_t_t024z_valid
         I_T_T024E_VALID = lt_i_t_t024e_valid
         E_T_PLANTS = lt_e_t_plants
         CH_T_MSSG_LB = lt_ch_t_mssg_lb
. " EXIT_SAPLWLBA_004




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLWLBA_004

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 PLANT_TYPE FROM WLB0013 INTO @DATA(ld_i_plant_type).
 
 
"SELECT single WLB_CHECK_A_WERK FROM WLB000A INTO @DATA(ld_i_record_tests).
 
 
 
 
 
 


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!