SAP SUSR_GET_TABLES_WITH_AUTH Function Module for
SUSR_GET_TABLES_WITH_AUTH is a standard susr get tables with auth SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 susr get tables with auth FM, simply by entering the name SUSR_GET_TABLES_WITH_AUTH into the relevant SAP transaction such as SE37 or SE38.
Function Group: SUSL
Program Name: SAPLSUSL
Main Program: SAPLSUSL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SUSR_GET_TABLES_WITH_AUTH 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 'SUSR_GET_TABLES_WITH_AUTH'".
EXPORTING
* P_OBJECT = 'S_TABU_DIS' "
* P_USER = "
* PT_ROLES = "
* PT_AUTHS = "
* P_DISPLAY = "
* P_TITLE = "
* P_SHOW_TEXTS = "
CHANGING
TABLE_LIST = "
EXCEPTIONS
WRONG_PARAMETER_SET = 1 NO_AUTHORITY = 2 NO_DATA_FOR_SELECTION = 3
IMPORTING Parameters details for SUSR_GET_TABLES_WITH_AUTH
P_OBJECT -
Data type: XUOBJECTDefault: 'S_TABU_DIS'
Optional: No
Call by Reference: Yes
P_USER -
Data type: XUBNAMEOptional: Yes
Call by Reference: Yes
PT_ROLES -
Data type: SUSR_T_ROLESOptional: Yes
Call by Reference: Yes
PT_AUTHS -
Data type: SUSR_T_USVALUESOptional: Yes
Call by Reference: Yes
P_DISPLAY -
Data type: FLAGOptional: Yes
Call by Reference: Yes
P_TITLE -
Data type: LVC_TITLEOptional: Yes
Call by Reference: Yes
P_SHOW_TEXTS -
Data type: FLAGOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for SUSR_GET_TABLES_WITH_AUTH
TABLE_LIST -
Data type: SUSR_T_TABL_LISTOptional: No
Call by Reference: Yes
EXCEPTIONS details
WRONG_PARAMETER_SET -
Data type:Optional: No
Call by Reference: Yes
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: Yes
NO_DATA_FOR_SELECTION -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SUSR_GET_TABLES_WITH_AUTH 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_p_object | TYPE XUOBJECT, " 'S_TABU_DIS' | |||
| lv_table_list | TYPE SUSR_T_TABL_LIST, " | |||
| lv_wrong_parameter_set | TYPE SUSR_T_TABL_LIST, " | |||
| lv_p_user | TYPE XUBNAME, " | |||
| lv_no_authority | TYPE XUBNAME, " | |||
| lv_pt_roles | TYPE SUSR_T_ROLES, " | |||
| lv_no_data_for_selection | TYPE SUSR_T_ROLES, " | |||
| lv_pt_auths | TYPE SUSR_T_USVALUES, " | |||
| lv_p_display | TYPE FLAG, " | |||
| lv_p_title | TYPE LVC_TITLE, " | |||
| lv_p_show_texts | TYPE FLAG. " |
|   CALL FUNCTION 'SUSR_GET_TABLES_WITH_AUTH' " |
| EXPORTING | ||
| P_OBJECT | = lv_p_object | |
| P_USER | = lv_p_user | |
| PT_ROLES | = lv_pt_roles | |
| PT_AUTHS | = lv_pt_auths | |
| P_DISPLAY | = lv_p_display | |
| P_TITLE | = lv_p_title | |
| P_SHOW_TEXTS | = lv_p_show_texts | |
| CHANGING | ||
| TABLE_LIST | = lv_table_list | |
| EXCEPTIONS | ||
| WRONG_PARAMETER_SET = 1 | ||
| NO_AUTHORITY = 2 | ||
| NO_DATA_FOR_SELECTION = 3 | ||
| . " SUSR_GET_TABLES_WITH_AUTH | ||
ABAP code using 7.40 inline data declarations to call FM SUSR_GET_TABLES_WITH_AUTH
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_p_object) | = 'S_TABU_DIS'. | |||
Search for further information about these or an SAP related objects