SAP OIRB_GET_LOC_VALUES Function Module for Get the business location processing values









OIRB_GET_LOC_VALUES is a standard oirb get loc values SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get the business location processing values 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 oirb get loc values FM, simply by entering the name OIRB_GET_LOC_VALUES into the relevant SAP transaction such as SE37 or SE38.

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



Function OIRB_GET_LOC_VALUES 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 'OIRB_GET_LOC_VALUES'"Get the business location processing values
EXPORTING
I_PBLNR = "Business location number
* I_RNBT = "Business type

IMPORTING
E_OIFSPBL = "Physical location - master data
E_OIRBPBLB = "Business location at business type level (IS-OIL SSR)
E_ADRC = "Addresses (central address admin.)
E_LOCAA = "Location area assignment
E_STATUS = "Location status
E_LIGHTS = "Icon in text fields (substitute display, alias)

EXCEPTIONS
BUSINESS_TYPE_NOT_FOUND = 1 BUSINESS_LOCATION_NOT_FOUND = 2
.



IMPORTING Parameters details for OIRB_GET_LOC_VALUES

I_PBLNR - Business location number

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

I_RNBT - Business type

Data type: OIRA_RNBT
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for OIRB_GET_LOC_VALUES

E_OIFSPBL - Physical location - master data

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

E_OIRBPBLB - Business location at business type level (IS-OIL SSR)

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

E_ADRC - Addresses (central address admin.)

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

E_LOCAA - Location area assignment

Data type: OIFSPBL-LOCAA
Optional: No
Call by Reference: Yes

E_STATUS - Location status

Data type: OIRBPBLSTAT-STATUS
Optional: No
Call by Reference: Yes

E_LIGHTS - Icon in text fields (substitute display, alias)

Data type: ICON-ID
Optional: No
Call by Reference: Yes

EXCEPTIONS details

BUSINESS_TYPE_NOT_FOUND - Location/Business type does not exist

Data type:
Optional: No
Call by Reference: Yes

BUSINESS_LOCATION_NOT_FOUND - Location does not exist

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OIRB_GET_LOC_VALUES 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_i_pblnr  TYPE OIF_PBLNR, "   
lv_e_oifspbl  TYPE OIFSPBL, "   
lv_business_type_not_found  TYPE OIFSPBL, "   
lv_i_rnbt  TYPE OIRA_RNBT, "   
lv_e_oirbpblb  TYPE OIRBPBLB, "   
lv_business_location_not_found  TYPE OIRBPBLB, "   
lv_e_adrc  TYPE ADRC, "   
lv_e_locaa  TYPE OIFSPBL-LOCAA, "   
lv_e_status  TYPE OIRBPBLSTAT-STATUS, "   
lv_e_lights  TYPE ICON-ID. "   

  CALL FUNCTION 'OIRB_GET_LOC_VALUES'  "Get the business location processing values
    EXPORTING
         I_PBLNR = lv_i_pblnr
         I_RNBT = lv_i_rnbt
    IMPORTING
         E_OIFSPBL = lv_e_oifspbl
         E_OIRBPBLB = lv_e_oirbpblb
         E_ADRC = lv_e_adrc
         E_LOCAA = lv_e_locaa
         E_STATUS = lv_e_status
         E_LIGHTS = lv_e_lights
    EXCEPTIONS
        BUSINESS_TYPE_NOT_FOUND = 1
        BUSINESS_LOCATION_NOT_FOUND = 2
. " OIRB_GET_LOC_VALUES




ABAP code using 7.40 inline data declarations to call FM OIRB_GET_LOC_VALUES

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 LOCAA FROM OIFSPBL INTO @DATA(ld_e_locaa).
 
"SELECT single STATUS FROM OIRBPBLSTAT INTO @DATA(ld_e_status).
 
"SELECT single ID FROM ICON INTO @DATA(ld_e_lights).
 


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!