SAP OIRA_AUTH_FILTER_LOCATIONS Function Module for SSR Authorization: Filter auth. locations by Report ID
OIRA_AUTH_FILTER_LOCATIONS is a standard oira auth filter locations 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 Authorization: Filter auth. locations by Report ID 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 oira auth filter locations FM, simply by entering the name OIRA_AUTH_FILTER_LOCATIONS into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIRA1
Program Name: SAPLOIRA1
Main Program: SAPLOIRA1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function OIRA_AUTH_FILTER_LOCATIONS 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 'OIRA_AUTH_FILTER_LOCATIONS'"SSR Authorization: Filter auth. locations by Report ID.
EXPORTING
I_STRUCTURE = "Table name
* I_NO_MESSAGES = ' ' "No message display
* I_SEL_LOCAA_RNBT = ' ' "Re-select LOCAA from RNBT level
* I_USE_ADDR_GET = ' ' "Use ADDR_GET (BAS buffering)
I_FNAME_PBLNR = "Field name Location ID
* I_FNAME_ADDRNUM = "Field name Address number
* I_FNAME_PBLTYP = "Field name Location type
* I_FNAME_BUKRS = "Field name Company code
* I_FNAME_LOCAA = "Field name Location Area Assignment
* I_FNAME_AUTGR = "Field name Authorization group
* I_RNBT = "Retail network business type
* I_REPID = SY-CPROG "Report ID (Programm name)
IMPORTING
E_DATA_IS_FILTERED = "Indicator: Data has been filtered / Negative auth checks
TABLES
T_DATA_TAB = "Data table with structure I_STRUCTURE
* T_ADRC_TAB = "Addresses (central address admin.)
EXCEPTIONS
DDIF_TABL_GET = 1
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLOIRA1_001 general location header screen
EXIT_SAPLOIRA1_002 Retrieve business location number from header screen
IMPORTING Parameters details for OIRA_AUTH_FILTER_LOCATIONS
I_STRUCTURE - Table name
Data type: DDOBJNAMEOptional: No
Call by Reference: Yes
I_NO_MESSAGES - No message display
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: Yes
I_SEL_LOCAA_RNBT - Re-select LOCAA from RNBT level
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: Yes
I_USE_ADDR_GET - Use ADDR_GET (BAS buffering)
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: Yes
I_FNAME_PBLNR - Field name Location ID
Data type: FIELDNAMEOptional: No
Call by Reference: Yes
I_FNAME_ADDRNUM - Field name Address number
Data type: FIELDNAMEOptional: Yes
Call by Reference: Yes
I_FNAME_PBLTYP - Field name Location type
Data type: FIELDNAMEOptional: Yes
Call by Reference: Yes
I_FNAME_BUKRS - Field name Company code
Data type: FIELDNAMEOptional: Yes
Call by Reference: Yes
I_FNAME_LOCAA - Field name Location Area Assignment
Data type: FIELDNAMEOptional: Yes
Call by Reference: Yes
I_FNAME_AUTGR - Field name Authorization group
Data type: FIELDNAMEOptional: Yes
Call by Reference: Yes
I_RNBT - Retail network business type
Data type: OIRA_RNBTOptional: Yes
Call by Reference: Yes
I_REPID - Report ID (Programm name)
Data type: REPIDDefault: SY-CPROG
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for OIRA_AUTH_FILTER_LOCATIONS
E_DATA_IS_FILTERED - Indicator: Data has been filtered / Negative auth checks
Data type: CHAR1Optional: No
Call by Reference: Yes
TABLES Parameters details for OIRA_AUTH_FILTER_LOCATIONS
T_DATA_TAB - Data table with structure I_STRUCTURE
Data type:Optional: No
Call by Reference: Yes
T_ADRC_TAB - Addresses (central address admin.)
Data type: ADRCOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
DDIF_TABL_GET - Error on retrieving structure information
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for OIRA_AUTH_FILTER_LOCATIONS 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_t_data_tab | TYPE STANDARD TABLE OF STRING, " | |||
lv_i_structure | TYPE DDOBJNAME, " | |||
lv_ddif_tabl_get | TYPE DDOBJNAME, " | |||
lv_e_data_is_filtered | TYPE CHAR1, " | |||
lv_i_no_messages | TYPE CHAR1, " ' ' | |||
lv_i_sel_locaa_rnbt | TYPE CHAR1, " ' ' | |||
lv_i_use_addr_get | TYPE CHAR1, " ' ' | |||
lt_t_adrc_tab | TYPE STANDARD TABLE OF ADRC, " | |||
lv_i_fname_pblnr | TYPE FIELDNAME, " | |||
lv_i_fname_addrnum | TYPE FIELDNAME, " | |||
lv_i_fname_pbltyp | TYPE FIELDNAME, " | |||
lv_i_fname_bukrs | TYPE FIELDNAME, " | |||
lv_i_fname_locaa | TYPE FIELDNAME, " | |||
lv_i_fname_autgr | TYPE FIELDNAME, " | |||
lv_i_rnbt | TYPE OIRA_RNBT, " | |||
lv_i_repid | TYPE REPID. " SY-CPROG |
  CALL FUNCTION 'OIRA_AUTH_FILTER_LOCATIONS' "SSR Authorization: Filter auth. locations by Report ID |
EXPORTING | ||
I_STRUCTURE | = lv_i_structure | |
I_NO_MESSAGES | = lv_i_no_messages | |
I_SEL_LOCAA_RNBT | = lv_i_sel_locaa_rnbt | |
I_USE_ADDR_GET | = lv_i_use_addr_get | |
I_FNAME_PBLNR | = lv_i_fname_pblnr | |
I_FNAME_ADDRNUM | = lv_i_fname_addrnum | |
I_FNAME_PBLTYP | = lv_i_fname_pbltyp | |
I_FNAME_BUKRS | = lv_i_fname_bukrs | |
I_FNAME_LOCAA | = lv_i_fname_locaa | |
I_FNAME_AUTGR | = lv_i_fname_autgr | |
I_RNBT | = lv_i_rnbt | |
I_REPID | = lv_i_repid | |
IMPORTING | ||
E_DATA_IS_FILTERED | = lv_e_data_is_filtered | |
TABLES | ||
T_DATA_TAB | = lt_t_data_tab | |
T_ADRC_TAB | = lt_t_adrc_tab | |
EXCEPTIONS | ||
DDIF_TABL_GET = 1 | ||
. " OIRA_AUTH_FILTER_LOCATIONS |
ABAP code using 7.40 inline data declarations to call FM OIRA_AUTH_FILTER_LOCATIONS
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.DATA(ld_i_no_messages) | = ' '. | |||
DATA(ld_i_sel_locaa_rnbt) | = ' '. | |||
DATA(ld_i_use_addr_get) | = ' '. | |||
DATA(ld_i_repid) | = SY-CPROG. | |||
Search for further information about these or an SAP related objects