SAP RSSB_AUTHORITY_COMP_CHECK Function Module for Authorization Protection of Components in Business Explorer Query Editor
RSSB_AUTHORITY_COMP_CHECK is a standard rssb authority comp check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Authorization Protection of Components in Business Explorer Query Editor 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 rssb authority comp check FM, simply by entering the name RSSB_AUTHORITY_COMP_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSSB
Program Name: SAPLRSSB
Main Program: SAPLRSSB
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSSB_AUTHORITY_COMP_CHECK 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 'RSSB_AUTHORITY_COMP_CHECK'"Authorization Protection of Components in Business Explorer Query Editor.
EXPORTING
I_INFOAREA = "
I_INFOCUBE = "InfoCube
I_COMPTYPE = "
I_COMPID = "
* I_OWNER = "Owner (Person Responsible)
I_ACTVT = "Activity
* I_UNAME = SY-UNAME "User Name in User Master Record
EXCEPTIONS
USER_NOT_AUTHORIZED = 1
IMPORTING Parameters details for RSSB_AUTHORITY_COMP_CHECK
I_INFOAREA -
Data type: AUTHBIW-RSINFOAREAOptional: No
Call by Reference: No ( called with pass by value option)
I_INFOCUBE - InfoCube
Data type: AUTHBIW-RSINFOCUBEOptional: No
Call by Reference: No ( called with pass by value option)
I_COMPTYPE -
Data type: AUTHBIW-RSZCOMPTPOptional: No
Call by Reference: No ( called with pass by value option)
I_COMPID -
Data type: AUTHBIW-RSZCOMPIDOptional: No
Call by Reference: No ( called with pass by value option)
I_OWNER - Owner (Person Responsible)
Data type: AUTHBIW-RSOWNEROptional: Yes
Call by Reference: No ( called with pass by value option)
I_ACTVT - Activity
Data type: AUTHB-ACTVTOptional: No
Call by Reference: No ( called with pass by value option)
I_UNAME - User Name in User Master Record
Data type: SYUNAMEDefault: SY-UNAME
Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
USER_NOT_AUTHORIZED - User does not have authorization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSSB_AUTHORITY_COMP_CHECK 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_infoarea | TYPE AUTHBIW-RSINFOAREA, " | |||
| lv_user_not_authorized | TYPE AUTHBIW, " | |||
| lv_i_infocube | TYPE AUTHBIW-RSINFOCUBE, " | |||
| lv_i_comptype | TYPE AUTHBIW-RSZCOMPTP, " | |||
| lv_i_compid | TYPE AUTHBIW-RSZCOMPID, " | |||
| lv_i_owner | TYPE AUTHBIW-RSOWNER, " | |||
| lv_i_actvt | TYPE AUTHB-ACTVT, " | |||
| lv_i_uname | TYPE SYUNAME. " SY-UNAME |
|   CALL FUNCTION 'RSSB_AUTHORITY_COMP_CHECK' "Authorization Protection of Components in Business Explorer Query Editor |
| EXPORTING | ||
| I_INFOAREA | = lv_i_infoarea | |
| I_INFOCUBE | = lv_i_infocube | |
| I_COMPTYPE | = lv_i_comptype | |
| I_COMPID | = lv_i_compid | |
| I_OWNER | = lv_i_owner | |
| I_ACTVT | = lv_i_actvt | |
| I_UNAME | = lv_i_uname | |
| EXCEPTIONS | ||
| USER_NOT_AUTHORIZED = 1 | ||
| . " RSSB_AUTHORITY_COMP_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM RSSB_AUTHORITY_COMP_CHECK
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 RSINFOAREA FROM AUTHBIW INTO @DATA(ld_i_infoarea). | ||||
| "SELECT single RSINFOCUBE FROM AUTHBIW INTO @DATA(ld_i_infocube). | ||||
| "SELECT single RSZCOMPTP FROM AUTHBIW INTO @DATA(ld_i_comptype). | ||||
| "SELECT single RSZCOMPID FROM AUTHBIW INTO @DATA(ld_i_compid). | ||||
| "SELECT single RSOWNER FROM AUTHBIW INTO @DATA(ld_i_owner). | ||||
| "SELECT single ACTVT FROM AUTHB INTO @DATA(ld_i_actvt). | ||||
| DATA(ld_i_uname) | = SY-UNAME. | |||
Search for further information about these or an SAP related objects