SAP LOCATION_WRF3_SELECT Function Module for NOTRANSL: Lesen Lieferwerke (WRF3)









LOCATION_WRF3_SELECT is a standard location wrf3 select 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: Lesen Lieferwerke (WRF3) 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 wrf3 select FM, simply by entering the name LOCATION_WRF3_SELECT 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_WRF3_SELECT 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_WRF3_SELECT'"NOTRANSL: Lesen Lieferwerke (WRF3)
EXPORTING
* I_WERKS = "Plant
* I_LOCNR = "Customer number of plant
* I_MATKL = "Material Group
* I_DATBI = "Valid to date
* I_OP_DATBI = '=' "Version Number Component
* I_DATAB = "Valid-from date
* I_OP_DATAB = '=' "Version Number Component
* I_LOCLB = "Supplying plant (source of supply)

TABLES
O_WRF3 = "Delivering plant, time-dependent

EXCEPTIONS
INVALID_PARAMETERS = 1 INVALID_PLANT = 2 PLANT_NOT_FOUND = 3 PLANT_IS_NO_RETAIL_SITE = 4 PLANT_HAS_NO_CUSTOMER = 5 NO_ENTRIES_FOUND = 6
.



IMPORTING Parameters details for LOCATION_WRF3_SELECT

I_WERKS - Plant

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

I_LOCNR - Customer number of plant

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

I_MATKL - Material Group

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

I_DATBI - Valid to date

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

I_OP_DATBI - Version Number Component

Data type: SHSELOPT-OPTION
Default: '='
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DATAB - Valid-from date

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

I_OP_DATAB - Version Number Component

Data type: SHSELOPT-OPTION
Default: '='
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LOCLB - Supplying plant (source of supply)

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

TABLES Parameters details for LOCATION_WRF3_SELECT

O_WRF3 - Delivering plant, time-dependent

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

EXCEPTIONS details

INVALID_PARAMETERS -

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

INVALID_PLANT -

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)

PLANT_IS_NO_RETAIL_SITE -

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

PLANT_HAS_NO_CUSTOMER -

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

NO_ENTRIES_FOUND -

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

Copy and paste ABAP code example for LOCATION_WRF3_SELECT 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 WRF3, "   
lv_i_werks  TYPE T001W-WERKS, "   
lv_invalid_parameters  TYPE T001W, "   
lv_i_locnr  TYPE T001W-KUNNR, "   
lv_invalid_plant  TYPE T001W, "   
lv_i_matkl  TYPE WRF3-MATKL, "   
lv_plant_not_found  TYPE WRF3, "   
lv_i_datbi  TYPE WRF3-DATBI, "   
lv_plant_is_no_retail_site  TYPE WRF3, "   
lv_i_op_datbi  TYPE SHSELOPT-OPTION, "   '='
lv_plant_has_no_customer  TYPE SHSELOPT, "   
lv_i_datab  TYPE WRF3-DATAB, "   
lv_no_entries_found  TYPE WRF3, "   
lv_i_op_datab  TYPE SHSELOPT-OPTION, "   '='
lv_i_loclb  TYPE WRF3-LOCLB. "   

  CALL FUNCTION 'LOCATION_WRF3_SELECT'  "NOTRANSL: Lesen Lieferwerke (WRF3)
    EXPORTING
         I_WERKS = lv_i_werks
         I_LOCNR = lv_i_locnr
         I_MATKL = lv_i_matkl
         I_DATBI = lv_i_datbi
         I_OP_DATBI = lv_i_op_datbi
         I_DATAB = lv_i_datab
         I_OP_DATAB = lv_i_op_datab
         I_LOCLB = lv_i_loclb
    TABLES
         O_WRF3 = lt_o_wrf3
    EXCEPTIONS
        INVALID_PARAMETERS = 1
        INVALID_PLANT = 2
        PLANT_NOT_FOUND = 3
        PLANT_IS_NO_RETAIL_SITE = 4
        PLANT_HAS_NO_CUSTOMER = 5
        NO_ENTRIES_FOUND = 6
. " LOCATION_WRF3_SELECT




ABAP code using 7.40 inline data declarations to call FM LOCATION_WRF3_SELECT

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).
 
 
"SELECT single KUNNR FROM T001W INTO @DATA(ld_i_locnr).
 
 
"SELECT single MATKL FROM WRF3 INTO @DATA(ld_i_matkl).
 
 
"SELECT single DATBI FROM WRF3 INTO @DATA(ld_i_datbi).
 
 
"SELECT single OPTION FROM SHSELOPT INTO @DATA(ld_i_op_datbi).
DATA(ld_i_op_datbi) = '='.
 
 
"SELECT single DATAB FROM WRF3 INTO @DATA(ld_i_datab).
 
 
"SELECT single OPTION FROM SHSELOPT INTO @DATA(ld_i_op_datab).
DATA(ld_i_op_datab) = '='.
 
"SELECT single LOCLB FROM WRF3 INTO @DATA(ld_i_loclb).
 


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!