SAP RSEC_READ_ODS_HIER Function Module for Read BI AS Reporting Authorizations from ODS: Hierarchies









RSEC_READ_ODS_HIER is a standard rsec read ods hier SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read BI AS Reporting Authorizations from ODS: Hierarchies 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 rsec read ods hier FM, simply by entering the name RSEC_READ_ODS_HIER into the relevant SAP transaction such as SE37 or SE38.

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



Function RSEC_READ_ODS_HIER 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 'RSEC_READ_ODS_HIER'"Read BI AS Reporting Authorizations from ODS: Hierarchies
EXPORTING
I_INFOPROV = "InfoProvider
* I_PACKAGESIZE = 1000 "Maximum Number of Records Read
* I_DETLEVEL = '2' "Message Level

IMPORTING
E_T_MSG = "BW: Table with Messages (Application Log)
E_T_MSG_SHOW = "Application Log: Useful Data in the Log Display
E_SUBRC = "Return Value, Return Value after ABAP Statements
E_T_DATA_HIER = "BW Reporting Authorizations: Authorization for Hierarchy

CHANGING
* C_TSX_AUTH_VALUES = "BW Reporting Authorizations: User Authorizations

EXCEPTIONS
INFOPROV_NOT_FOUND = 1
.



IMPORTING Parameters details for RSEC_READ_ODS_HIER

I_INFOPROV - InfoProvider

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

I_PACKAGESIZE - Maximum Number of Records Read

Data type: I
Default: 1000
Optional: Yes
Call by Reference: Yes

I_DETLEVEL - Message Level

Data type: BAL_S_MSG-DETLEVEL
Default: '2'
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for RSEC_READ_ODS_HIER

E_T_MSG - BW: Table with Messages (Application Log)

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

E_T_MSG_SHOW - Application Log: Useful Data in the Log Display

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

E_SUBRC - Return Value, Return Value after ABAP Statements

Data type: SY-SUBRC
Optional: No
Call by Reference: Yes

E_T_DATA_HIER - BW Reporting Authorizations: Authorization for Hierarchy

Data type: STANDARD TABLE
Optional: No
Call by Reference: Yes

CHANGING Parameters details for RSEC_READ_ODS_HIER

C_TSX_AUTH_VALUES - BW Reporting Authorizations: User Authorizations

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

EXCEPTIONS details

INFOPROV_NOT_FOUND - Cannot Find InfoProvider

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

Copy and paste ABAP code example for RSEC_READ_ODS_HIER 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_t_msg  TYPE RS_T_MSG, "   
lv_i_infoprov  TYPE RSINFOPROV, "   
lv_c_tsx_auth_values  TYPE RSEC_TSX_AUTH_VALUES, "   
lv_infoprov_not_found  TYPE RSEC_TSX_AUTH_VALUES, "   
lv_e_t_msg_show  TYPE RS_T_MSG_SHOW, "   
lv_i_packagesize  TYPE I, "   1000
lv_e_subrc  TYPE SY-SUBRC, "   
lv_i_detlevel  TYPE BAL_S_MSG-DETLEVEL, "   '2'
lv_e_t_data_hier  TYPE STANDARD TABLE. "   

  CALL FUNCTION 'RSEC_READ_ODS_HIER'  "Read BI AS Reporting Authorizations from ODS: Hierarchies
    EXPORTING
         I_INFOPROV = lv_i_infoprov
         I_PACKAGESIZE = lv_i_packagesize
         I_DETLEVEL = lv_i_detlevel
    IMPORTING
         E_T_MSG = lv_e_t_msg
         E_T_MSG_SHOW = lv_e_t_msg_show
         E_SUBRC = lv_e_subrc
         E_T_DATA_HIER = lv_e_t_data_hier
    CHANGING
         C_TSX_AUTH_VALUES = lv_c_tsx_auth_values
    EXCEPTIONS
        INFOPROV_NOT_FOUND = 1
. " RSEC_READ_ODS_HIER




ABAP code using 7.40 inline data declarations to call FM RSEC_READ_ODS_HIER

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_packagesize) = 1000.
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_e_subrc).
 
"SELECT single DETLEVEL FROM BAL_S_MSG INTO @DATA(ld_i_detlevel).
DATA(ld_i_detlevel) = '2'.
 
 


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!