SAP LOCATION_READ_PLANT_COMPLETE Function Module for NOTRANSL: Werksdaten komplett lesen









LOCATION_READ_PLANT_COMPLETE is a standard location read plant complete SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Werksdaten komplett lesen 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 location read plant complete FM, simply by entering the name LOCATION_READ_PLANT_COMPLETE into the relevant SAP transaction such as SE37 or SE38.

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



Function LOCATION_READ_PLANT_COMPLETE 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 'LOCATION_READ_PLANT_COMPLETE'"NOTRANSL: Werksdaten komplett lesen
EXPORTING
I_WERKS = "Plant

IMPORTING
O_T001W = "Plants/Branches
O_T001K = "Valuation area
O_WRF1 = "Plant data
O_ADDR1_COMPLETE = "

TABLES
* O_WRF3 = "Change document structure; generated by RSSCD000
* O_WRF4 = "Change document struc.; generated by RSSCD00
* O_WRF5 = "Structure for change documents; generated by RSSCD000
* O_WRF6 = "Structure for Change Documents; Generated by RSSCD000
* O_T023W = "Change document struc.; generated by RSSCD00
* O_T023X = "Change document struc.; generated by RSSCD00
* O_WRF12 = "Structure for Change Documents; Generated by RSSCD000

EXCEPTIONS
INVALID_PLANT_NUMBER = 1 PLANT_NOT_FOUND = 2 VALUATION_AREA_NOT_FOUND = 3 GENERAL_DATA_NOT_FOUND = 4 ERROR_IN_INVENTORY_MANAGEMENT = 5 ADRESS_NOT_FOUND = 6
.



IMPORTING Parameters details for LOCATION_READ_PLANT_COMPLETE

I_WERKS - Plant

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

EXPORTING Parameters details for LOCATION_READ_PLANT_COMPLETE

O_T001W - Plants/Branches

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

O_T001K - Valuation area

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

O_WRF1 - Plant data

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

O_ADDR1_COMPLETE -

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

TABLES Parameters details for LOCATION_READ_PLANT_COMPLETE

O_WRF3 - Change document structure; generated by RSSCD000

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

O_WRF4 - Change document struc.; generated by RSSCD00

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

O_WRF5 - Structure for change documents; generated by RSSCD000

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

O_WRF6 - Structure for Change Documents; Generated by RSSCD000

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

O_T023W - Change document struc.; generated by RSSCD00

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

O_T023X - Change document struc.; generated by RSSCD00

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

O_WRF12 - Structure for Change Documents; Generated by RSSCD000

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

EXCEPTIONS details

INVALID_PLANT_NUMBER -

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

PLANT_NOT_FOUND -

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

VALUATION_AREA_NOT_FOUND -

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

GENERAL_DATA_NOT_FOUND -

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

ERROR_IN_INVENTORY_MANAGEMENT -

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

ADRESS_NOT_FOUND -

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

Copy and paste ABAP code example for LOCATION_READ_PLANT_COMPLETE 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:
lt_o_wrf3  TYPE STANDARD TABLE OF FWRF3, "   
lv_i_werks  TYPE T001W-WERKS, "   
lv_o_t001w  TYPE T001W, "   
lv_invalid_plant_number  TYPE T001W, "   
lt_o_wrf4  TYPE STANDARD TABLE OF FWRF4, "   
lv_o_t001k  TYPE T001K, "   
lv_plant_not_found  TYPE T001K, "   
lv_o_wrf1  TYPE WRF1, "   
lt_o_wrf5  TYPE STANDARD TABLE OF FWRF5, "   
lv_valuation_area_not_found  TYPE FWRF5, "   
lt_o_wrf6  TYPE STANDARD TABLE OF FWRF6, "   
lv_o_addr1_complete  TYPE SZADR_ADDR1_COMPLETE, "   
lv_general_data_not_found  TYPE SZADR_ADDR1_COMPLETE, "   
lt_o_t023w  TYPE STANDARD TABLE OF FT023W, "   
lv_error_in_inventory_management  TYPE FT023W, "   
lt_o_t023x  TYPE STANDARD TABLE OF FT023X, "   
lv_adress_not_found  TYPE FT023X, "   
lt_o_wrf12  TYPE STANDARD TABLE OF FWRF12. "   

  CALL FUNCTION 'LOCATION_READ_PLANT_COMPLETE'  "NOTRANSL: Werksdaten komplett lesen
    EXPORTING
         I_WERKS = lv_i_werks
    IMPORTING
         O_T001W = lv_o_t001w
         O_T001K = lv_o_t001k
         O_WRF1 = lv_o_wrf1
         O_ADDR1_COMPLETE = lv_o_addr1_complete
    TABLES
         O_WRF3 = lt_o_wrf3
         O_WRF4 = lt_o_wrf4
         O_WRF5 = lt_o_wrf5
         O_WRF6 = lt_o_wrf6
         O_T023W = lt_o_t023w
         O_T023X = lt_o_t023x
         O_WRF12 = lt_o_wrf12
    EXCEPTIONS
        INVALID_PLANT_NUMBER = 1
        PLANT_NOT_FOUND = 2
        VALUATION_AREA_NOT_FOUND = 3
        GENERAL_DATA_NOT_FOUND = 4
        ERROR_IN_INVENTORY_MANAGEMENT = 5
        ADRESS_NOT_FOUND = 6
. " LOCATION_READ_PLANT_COMPLETE




ABAP code using 7.40 inline data declarations to call FM LOCATION_READ_PLANT_COMPLETE

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 WERKS FROM T001W INTO @DATA(ld_i_werks).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!