SAP Reports / Programs

RHUSERRELATIONS SAP ABAP Report - Display User Assignments







RHUSERRELATIONS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report enables you to evaluate all the HR authorization profiles that exist for a user...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RHUSERRELATIONS into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RHUSERRELATIONS. "Basic submit
SUBMIT RHUSERRELATIONS AND RETURN. "Return to original report after report execution complete
SUBMIT RHUSERRELATIONS VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: VERK_OM = Related Organizational Units
Selection Text: ROLE = Roles and Standard Profiles
Selection Text: RHT77PR = Structural Profiles
Selection Text: P_UNAME = User Name
Selection Text: P_AUTH = Display HR Authorizations
Title: Display User Assignments
Text Symbol: ZUO = Assignments
Text Symbol: BEN = User
Text Symbol: 099 = Please use the new transaction HRAUTH
Text Symbol: 023 = Authorization Object
Text Symbol: 022 = Auth. Value (To)
Text Symbol: 021 = Auth. Value (From)
Text Symbol: 020 = P_PERNR (HR: Master Data - Personnel Number Check)
Text Symbol: 019 = PLOG (Personnel Planning)
Text Symbol: 018 = P_ABAP (HR: Reporting)
Text Symbol: 017 = P_ORGXXCON (HR: Master Data - Extended Check with Context)
Text Symbol: 016 = P_ORGINCON (HR: Master Data with Context)
Text Symbol: 015 = P_ORGXX (HR: Master Data - Extended Check)
Text Symbol: 014 = P_ORGIN (HR: Master Data)
Text Symbol: 013 = Evaluate Table T77PR
Text Symbol: 012 = Authorizations by Authorization Object
Text Symbol: 010 = Standard Profiles in OM (IT 1016)
Text Symbol: 009 = Related Roles in OM (Relationship 007)
Text Symbol: 008 = Standard Profiles in UserMastRec
Text Symbol: 007 = Roles in User MasterRec
Text Symbol: 006 = Inactive
Text Symbol: 005 = Corresponding Switch Inactive
Text Symbol: 004 = User Name
Text Symbol: 003 = Authorization Switch
Text Symbol: 002 = Roles and StandardProfiles
Text Symbol: 001 = Related Organizational Units


INCLUDES used within this REPORT RHUSERRELATIONS

INCLUDE RHUSERRELATIONS_TOP.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

RH_GET_ACTIVE_WF_PLVAR call function 'RH_GET_ACTIVE_WF_PLVAR' IMPORTING act_plvar = g_act_plvar EXCEPTIONS others = 1.

BAPI_USER_GET_DETAIL call function 'BAPI_USER_GET_DETAIL' EXPORTING username = l_user TABLES profiles = it_prof activitygroups = it_acgrp return = it_return.

RH_STRUC_GET call function 'RH_STRUC_GET' EXPORTING act_otype = 'US' act_objid = p_uname act_wegid = c_wegid_proflint act_plvar = g_act_plvar act_begda = keydate act_endda = keydate act_tflag = space act_vflag = 'X' authority_check = space TABLES result_objec = it_objec result_struc = it_struc EXCEPTIONS NO_PLVAR_FOUND = 1 NO_ENTRY_FOUND = 2 OTHERS = 3.

RH_READ_INFTY_NNNN call function 'RH_READ_INFTY_NNNN' EXPORTING authority = space with_stru_auth = space infty = '1016' istat = '1' extend = 'X' begda = keydate endda = keydate TABLES innnn = it_infty_1016 objects = it_objec EXCEPTIONS NOTHING_FOUND = 1 WRONG_CONDITION = 2 INFOTYP_NOT_SUPPORTED = 3 WRONG_PARAMETERS = 4 OTHERS = 5.

RH_READ_INFTY_TABDATA call function 'RH_READ_INFTY_TABDATA' EXPORTING infty = '1016' TABLES innnn = it_infty_1016 hrtnnnn = it_hrt1016 EXCEPTIONS NO_TABLE_INFTY = 1 INNNN_EMPTY = 2 NOTHING_FOUND = 3 OTHERS = 4.

REUSE_ALV_COMMENTARY_WRITE call function 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_top_of_page.

RH_USER_SEARCH_VIA_NAME call function 'RH_USER_SEARCH_VIA_NAME' EXPORTING search_string = p_uname TABLES user_name = it_names.

RH_GET_EXTERNAL_OBJECT_INFO call function 'RH_GET_EXTERNAL_OBJECT_INFO' EXPORTING otype = 'AG' IMPORTING i77eo = wa_t77eo EXCEPTIONS no_external_object = 1 others = 2.

RH_STRUC_GET call function 'RH_STRUC_GET' EXPORTING act_otype = 'US' act_objid = p_uname act_wegid = 'MANASS' act_plvar = g_act_plvar act_begda = keydate act_endda = keydate act_tflag = space act_vflag = space authority_check = space TABLES result_objec = it_objec EXCEPTIONS NO_PLVAR_FOUND = 1 NO_ENTRY_FOUND = 2 OTHERS = 3.

RH_STRUC_GET call function 'RH_STRUC_GET' EXPORTING act_otype = 'US' act_objid = p_uname act_wegid = 'ORGASS' act_plvar = g_act_plvar act_begda = keydate act_endda = keydate act_tflag = space act_vflag = space authority_check = space TABLES result_objec = it_objec EXCEPTIONS NO_PLVAR_FOUND = 1 NO_ENTRY_FOUND = 2 OTHERS = 3.

HR_GET_EMPLOYEES_FROM_USER_DB CALL FUNCTION 'HR_GET_EMPLOYEES_FROM_USER_DB' EXPORTING USER = p_uname TABLES EE_TAB = it_employees.

GET_AUTH_VALUES call function 'GET_AUTH_VALUES' EXPORTING object1 = par1 object2 = par2 object3 = par3 object4 = par4 object5 = par5 object6 = par6 OBJECT7 = par7 user = p_uname TABLES values = it_auth_objects EXCEPTIONS user_doesnt_exist = 1 others = 2.

REUSE_ALV_GRID_DISPLAY call function 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = l_menu i_callback_top_of_page = 'TOP_OF_PAGE' is_layout = gs_layout it_fieldcat = it_fcat it_events = it_events TABLES t_outtab = it_list EXCEPTIONS program_error = 1 others = 2.

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name = exitname IMPORTING is_implemented = is_implemented CHANGING instance = profl_badi_exit.

REUSE_ALV_GRID_DISPLAY call function 'REUSE_ALV_GRID_DISPLAY' EXPORTING it_fieldcat = it_fcat I_SCREEN_START_COLUMN = p_x1 I_SCREEN_START_LINE = p_y1 I_SCREEN_END_COLUMN = p_x2 I_SCREEN_END_LINE = p_y2 TABLES t_outtab = p_it_list EXCEPTIONS program_error = 1 others = 2.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RHUSERRELATIONS or its description.