SAP OIRC_GET_METER_LOCBT Function Module for SSR Meters - Select a business location/business type for one meter
OIRC_GET_METER_LOCBT is a standard oirc get meter locbt SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for SSR Meters - Select a business location/business type for one meter 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 oirc get meter locbt FM, simply by entering the name OIRC_GET_METER_LOCBT into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIRC_APP_METERS
Program Name: SAPLOIRC_APP_METERS
Main Program: SAPLOIRC_APP_METERS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIRC_GET_METER_LOCBT 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 'OIRC_GET_METER_LOCBT'"SSR Meters - Select a business location/business type for one meter.
EXPORTING
I_GMMNR = "GMM: Number of general meter
IMPORTING
E_PBLNR = "Business location identifier (IS-Oil MRN)
E_RNBT = "Retail network business type
EXCEPTIONS
NO_LOCATION = 1
IMPORTING Parameters details for OIRC_GET_METER_LOCBT
I_GMMNR - GMM: Number of general meter
Data type: OIRBMATMET-GMMNROptional: No
Call by Reference: Yes
EXPORTING Parameters details for OIRC_GET_METER_LOCBT
E_PBLNR - Business location identifier (IS-Oil MRN)
Data type: OIRBPBLB-PBLNROptional: No
Call by Reference: Yes
E_RNBT - Retail network business type
Data type: OIRBPBLB-RNBTOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_LOCATION - The meter is not linked to any location
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for OIRC_GET_METER_LOCBT 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_e_pblnr | TYPE OIRBPBLB-PBLNR, " | |||
| lv_i_gmmnr | TYPE OIRBMATMET-GMMNR, " | |||
| lv_no_location | TYPE OIRBMATMET, " | |||
| lv_e_rnbt | TYPE OIRBPBLB-RNBT. " |
|   CALL FUNCTION 'OIRC_GET_METER_LOCBT' "SSR Meters - Select a business location/business type for one meter |
| EXPORTING | ||
| I_GMMNR | = lv_i_gmmnr | |
| IMPORTING | ||
| E_PBLNR | = lv_e_pblnr | |
| E_RNBT | = lv_e_rnbt | |
| EXCEPTIONS | ||
| NO_LOCATION = 1 | ||
| . " OIRC_GET_METER_LOCBT | ||
ABAP code using 7.40 inline data declarations to call FM OIRC_GET_METER_LOCBT
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 PBLNR FROM OIRBPBLB INTO @DATA(ld_e_pblnr). | ||||
| "SELECT single GMMNR FROM OIRBMATMET INTO @DATA(ld_i_gmmnr). | ||||
| "SELECT single RNBT FROM OIRBPBLB INTO @DATA(ld_e_rnbt). | ||||
Search for further information about these or an SAP related objects