SAP RSEC_F4AUTH Function Module for Search Help for Reporting Authorizations
RSEC_F4AUTH is a standard rsec f4auth SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Search Help for Reporting Authorizations 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 f4auth FM, simply by entering the name RSEC_F4AUTH into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSEC_SCREENS
Program Name: SAPLRSEC_SCREENS
Main Program: SAPLRSEC_SCREENS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSEC_F4AUTH 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_F4AUTH'"Search Help for Reporting Authorizations.
EXPORTING
* I_USERNAME = "User Name
* I_AUTHCHECK = RS_C_FALSE "With Authorization Check
* I_WITH_TEXTS = RS_C_TRUE "Show Short Texts
* I_MULTIPLE_CHOICE = RS_C_FALSE "Multiple Selection Supported
* I_TITLE = "Title of Selection Window
* I_OBJVERS = RS_C_OBJVERS-ACTIVE "Object Version
* I_OBJSTAT = RS_C_OBJSTAT-ALL "Object Status for Runtime Version
IMPORTING
E_T_AUTHS = "Table with Authorization Names
CHANGING
* C_AUTHNAME = "Auth. Name, Including Pattern
EXCEPTIONS
NO_AUTH = 1 NOTHING_FOUND = 2
IMPORTING Parameters details for RSEC_F4AUTH
I_USERNAME - User Name
Data type: SYUNAMEOptional: Yes
Call by Reference: Yes
I_AUTHCHECK - With Authorization Check
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: Yes
I_WITH_TEXTS - Show Short Texts
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: Yes
I_MULTIPLE_CHOICE - Multiple Selection Supported
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: Yes
I_TITLE - Title of Selection Window
Data type:Optional: Yes
Call by Reference: Yes
I_OBJVERS - Object Version
Data type: RSOBJVERSDefault: RS_C_OBJVERS-ACTIVE
Optional: Yes
Call by Reference: Yes
I_OBJSTAT - Object Status for Runtime Version
Data type: RSOBJSTATDefault: RS_C_OBJSTAT-ALL
Optional: No
Call by Reference: Yes
EXPORTING Parameters details for RSEC_F4AUTH
E_T_AUTHS - Table with Authorization Names
Data type: RSEC_T_AUTHSOptional: No
Call by Reference: Yes
CHANGING Parameters details for RSEC_F4AUTH
C_AUTHNAME - Auth. Name, Including Pattern
Data type: RSAUTHOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_AUTH - No authorization
Data type:Optional: No
Call by Reference: Yes
NOTHING_FOUND - No values found
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSEC_F4AUTH 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_no_auth | TYPE STRING, " | |||
| lv_e_t_auths | TYPE RSEC_T_AUTHS, " | |||
| lv_c_authname | TYPE RSAUTH, " | |||
| lv_i_username | TYPE SYUNAME, " | |||
| lv_i_authcheck | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_nothing_found | TYPE RS_BOOL, " | |||
| lv_i_with_texts | TYPE RS_BOOL, " RS_C_TRUE | |||
| lv_i_multiple_choice | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_title | TYPE RS_BOOL, " | |||
| lv_i_objvers | TYPE RSOBJVERS, " RS_C_OBJVERS-ACTIVE | |||
| lv_i_objstat | TYPE RSOBJSTAT. " RS_C_OBJSTAT-ALL |
|   CALL FUNCTION 'RSEC_F4AUTH' "Search Help for Reporting Authorizations |
| EXPORTING | ||
| I_USERNAME | = lv_i_username | |
| I_AUTHCHECK | = lv_i_authcheck | |
| I_WITH_TEXTS | = lv_i_with_texts | |
| I_MULTIPLE_CHOICE | = lv_i_multiple_choice | |
| I_TITLE | = lv_i_title | |
| I_OBJVERS | = lv_i_objvers | |
| I_OBJSTAT | = lv_i_objstat | |
| IMPORTING | ||
| E_T_AUTHS | = lv_e_t_auths | |
| CHANGING | ||
| C_AUTHNAME | = lv_c_authname | |
| EXCEPTIONS | ||
| NO_AUTH = 1 | ||
| NOTHING_FOUND = 2 | ||
| . " RSEC_F4AUTH | ||
ABAP code using 7.40 inline data declarations to call FM RSEC_F4AUTH
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_authcheck) | = RS_C_FALSE. | |||
| DATA(ld_i_with_texts) | = RS_C_TRUE. | |||
| DATA(ld_i_multiple_choice) | = RS_C_FALSE. | |||
| DATA(ld_i_objvers) | = RS_C_OBJVERS-ACTIVE. | |||
| DATA(ld_i_objstat) | = RS_C_OBJSTAT-ALL. | |||
Search for further information about these or an SAP related objects