SAP RSEC_GENERATE_FROM_ODS Function Module for BI AS Authorizations: Generation from Data in Multiple ODSs
RSEC_GENERATE_FROM_ODS is a standard rsec generate from ods SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BI AS Authorizations: Generation from Data in Multiple ODSs 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 generate from ods FM, simply by entering the name RSEC_GENERATE_FROM_ODS 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_GENERATE_FROM_ODS 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_GENERATE_FROM_ODS'"BI AS Authorizations: Generation from Data in Multiple ODSs.
EXPORTING
I_T_INFOPROV_AUTH = "Reporting Authorizations: InfoProviders with Authorizations
* I_APPL_LOG_INITIALIZED = RS_C_FALSE "Boolean
* I_APPL_LOG_TITLE = "Application Log: External ID
* I_DISPLAY_LOG = RS_C_FALSE "Boolean
* I_DETLEVEL = '1' "Message Level
* I_PACKAGESIZE = 10000 "Package Size
IMPORTING Parameters details for RSEC_GENERATE_FROM_ODS
I_T_INFOPROV_AUTH - Reporting Authorizations: InfoProviders with Authorizations
Data type: RSEC_T_INFOPROV_AUTHOptional: No
Call by Reference: Yes
I_APPL_LOG_INITIALIZED - Boolean
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: Yes
I_APPL_LOG_TITLE - Application Log: External ID
Data type: BAL_S_LOG-EXTNUMBEROptional: Yes
Call by Reference: Yes
I_DISPLAY_LOG - Boolean
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: Yes
I_DETLEVEL - Message Level
Data type: BAL_S_MSG-DETLEVELDefault: '1'
Optional: Yes
Call by Reference: Yes
I_PACKAGESIZE - Package Size
Data type: IDefault: 10000
Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for RSEC_GENERATE_FROM_ODS 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_t_infoprov_auth | TYPE RSEC_T_INFOPROV_AUTH, " | |||
| lv_i_appl_log_initialized | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_appl_log_title | TYPE BAL_S_LOG-EXTNUMBER, " | |||
| lv_i_display_log | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_detlevel | TYPE BAL_S_MSG-DETLEVEL, " '1' | |||
| lv_i_packagesize | TYPE I. " 10000 |
|   CALL FUNCTION 'RSEC_GENERATE_FROM_ODS' "BI AS Authorizations: Generation from Data in Multiple ODSs |
| EXPORTING | ||
| I_T_INFOPROV_AUTH | = lv_i_t_infoprov_auth | |
| I_APPL_LOG_INITIALIZED | = lv_i_appl_log_initialized | |
| I_APPL_LOG_TITLE | = lv_i_appl_log_title | |
| I_DISPLAY_LOG | = lv_i_display_log | |
| I_DETLEVEL | = lv_i_detlevel | |
| I_PACKAGESIZE | = lv_i_packagesize | |
| . " RSEC_GENERATE_FROM_ODS | ||
ABAP code using 7.40 inline data declarations to call FM RSEC_GENERATE_FROM_ODS
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_appl_log_initialized) | = RS_C_FALSE. | |||
| "SELECT single EXTNUMBER FROM BAL_S_LOG INTO @DATA(ld_i_appl_log_title). | ||||
| DATA(ld_i_display_log) | = RS_C_FALSE. | |||
| "SELECT single DETLEVEL FROM BAL_S_MSG INTO @DATA(ld_i_detlevel). | ||||
| DATA(ld_i_detlevel) | = '1'. | |||
| DATA(ld_i_packagesize) | = 10000. | |||
Search for further information about these or an SAP related objects