RHPROFL0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for
If you would like to execute this report or see the full code listing simply enter RHPROFL0 into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: RELAT = Transfer
Selection Text: PD = PD authorizations
Selection Text: OTYPE = Object Type
Selection Text: OB_TAB = Object ID
Selection Text: OBS_USER = Take into Acc.
Selection Text: US_TAB = Extended Object ID
Selection Text: USGRP = User group
Selection Text: USER = Generate
Selection Text: TEST = Test session (no changes)
Selection Text: SWEGID = Evaluation Path
Selection Text: NON_PROF = Without Assigned BasisProfiles
Selection Text: BCODE = Init. Password
Selection Text: BASE = Standard authorizations
Selection Text: LOG_ON = Create
Selection Text: KEYDATE = Key Date
Selection Text: DEL_PD = PD authorizations
Selection Text: DEL_BASE = Standard authorizations
Selection Text: DEL_ALL = Delete profile SAP_ALL
Title: Generate User Authorizations
Text Symbol: 204 = Role
Text Symbol: 203 = PD profile
Text Symbol: 202 = Standard Profile
Text Symbol: 201 = Available
Text Symbol: 200 = Created
Text Symbol: 302 = Profile type
Text Symbol: 301 = User status
Text Symbol: 300 = User
Text Symbol: 207 = Deleted
Text Symbol: 206 = Added
Text Symbol: 021 = Automatically assigned and deleted authorization profiles
Text Symbol: 006 = Link period between person and user
Text Symbol: 005 = New users
Text Symbol: 004 = No valid users found in analysis path
Text Symbol: 003 = Generate authorization profiles
Text Symbol: 001 = Start Object
Text Symbol: 020 = User master comparison
Text Symbol: 010 = Application Log
Text Symbol: 009 = Invalid users
INCLUDE RHPROFL0_TOP.
No SAP DATABASE tables are accessed within this REPORT code!
RH_GET_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR' IMPORTING act_plvar = act_plvar EXCEPTIONS OTHERS = 1.
SUSR_ZBV_CHECK_IF_ACTIVE CALL FUNCTION 'SUSR_ZBV_CHECK_IF_ACTIVE' EXCEPTIONS active = 1 not_active = 2 invalid_model = 3 OTHERS = 4.
SUSR_ZBV_CENTRALSYSTEM_CHECK CALL FUNCTION 'SUSR_ZBV_CENTRALSYSTEM_CHECK' EXCEPTIONS duplicate_central_system = 1 new_system = 2 not_central = 3 OTHERS = 4.
PRGN_CHECK_ZBV_FOR_AGR_ACTIVE CALL FUNCTION 'PRGN_CHECK_ZBV_FOR_AGR_ACTIVE' EXCEPTIONS ZBV_ACTIVE = 1 OTHERS = 2.
RH_STRUC_GET CALL FUNCTION 'RH_STRUC_GET' EXPORTING act_otype = otype act_objid = sel_obj_tab-realo act_wegid = swegid act_plvar = act_plvar act_begda = keydate act_endda = keydate act_tflag = space act_vflag = space authority_check = space TABLES result_objec = result_tab EXCEPTIONS OTHERS = 1.
RH_STRUC_GET CALL FUNCTION 'RH_STRUC_GET' EXPORTING act_otype = user_result_tab-otype act_objid = user_result_tab-realo act_wegid = c_wegid act_plvar = act_plvar act_begda = keydate act_endda = keydate act_tflag = space act_vflag = 'X' "Note 1335399 authority_check = space TABLES result_objec = objec_tab result_struc = result_struc "Note 1335399 EXCEPTIONS OTHERS = 1.
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 = infty_1016_tab OBJECTS = objec_tab EXCEPTIONS OTHERS = 1.
RH_READ_INFTY_TABDATA CALL FUNCTION 'RH_READ_INFTY_TABDATA' EXPORTING infty = '1016' TABLES innnn = infty_1016_tab hrtnnnn = hrt1016_tab EXCEPTIONS OTHERS = 1.
RH_READ_INFTY_NNNN CALL FUNCTION 'RH_READ_INFTY_NNNN' EXPORTING authority = space with_stru_auth = space infty = '1017' istat = '1' extend = 'X' begda = keydate endda = keydate TABLES innnn = infty_1017_tab OBJECTS = objec_tab EXCEPTIONS OTHERS = 1.
RH_READ_INFTY_TABDATA CALL FUNCTION 'RH_READ_INFTY_TABDATA' EXPORTING infty = '1017' TABLES innnn = infty_1017_tab hrtnnnn = hrt1017_tab EXCEPTIONS OTHERS = 1.
BAPI_USER_CREATE CALL FUNCTION 'BAPI_USER_CREATE' EXPORTING username = user_tab-user logondata = logondata password = bcode address = address defaults = defaults TABLES return = return_tab.
BAPI_USER_GET_DETAIL CALL FUNCTION 'BAPI_USER_GET_DETAIL' EXPORTING username = user_tab-user TABLES activitygroups = old_acgrp_tab profiles = old_prof_tab return = return_tab.
SUSR_BAPI_USER_ACTGROUPS_ASSIG CALL FUNCTION 'SUSR_BAPI_USER_ACTGROUPS_ASSIG' EXPORTING username = user_tab-user incl_hr_assign = 'X' TABLES activitygroups = new_acgrp_tab return = return_tab.
BAPI_USER_PROFILES_DELETE CALL FUNCTION 'BAPI_USER_PROFILES_DELETE' EXPORTING USERNAME = user_tab-user TABLES RETURN = return_tab.
BAPI_USER_PROFILES_ASSIGN CALL FUNCTION 'BAPI_USER_PROFILES_ASSIGN' EXPORTING username = user_tab-user TABLES profiles = new_prof_tab return = return_tab.
RH_OBJID_REQUEST CALL FUNCTION 'RH_OBJID_REQUEST' EXPORTING plvar = act_plvar otype = otype IMPORTING sel_object = sel_objec EXCEPTIONS OTHERS = 1.
RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING plvar = act_plvar otype = c_user realo = user_result_tab-realo begda = keydate endda = keydate IMPORTING obeg = begda oend = endda EXCEPTIONS not_found = 1 OTHERS = 2.
RH_STRUC_GET CALL FUNCTION 'RH_STRUC_GET' EXPORTING act_otype = user_result_tab-otype act_objid = user_result_tab-realo act_wegid = 'A208' act_plvar = act_plvar act_begda = keydate act_endda = keydate act_tflag = space TABLES result_struc = struc_tab EXCEPTIONS OTHERS = 1.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = prog_name i_callback_pf_status_set = form_alv_set_status i_callback_user_command = form_alv_user_command is_layout = list_layout it_fieldcat = gt_fieldcat[] it_events = list_events TABLES t_outtab = output_tab EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = list_events EXCEPTIONS list_type_wrong.
ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_GREEN_LIGHT' IMPORTING RESULT = icon_green EXCEPTIONS OTHERS = 0.
ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_YELLOW_LIGHT' IMPORTING RESULT = icon_yellow EXCEPTIONS OTHERS = 0.
ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_RED_LIGHT' IMPORTING RESULT = icon_red EXCEPTIONS OTHERS = 0.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = list_comments.
BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = log IMPORTING e_log_handle = logheader-log_handle EXCEPTIONS log_header_inconsistent = 1 OTHERS = 2.
BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING i_t_log_handle = loghandles EXCEPTIONS log_not_found = 1 save_not_allowed = 2 numbering_error = 3 OTHERS = 4.
BAL_DB_SEARCH CALL FUNCTION 'BAL_DB_SEARCH' EXPORTING i_s_log_filter = filter IMPORTING e_t_log_header = logheaders EXCEPTIONS OTHERS = 0.
BAL_DB_RELOAD CALL FUNCTION 'BAL_DB_RELOAD' EXPORTING i_t_log_handle = loghandles EXCEPTIONS no_logs_specified = 1 log_not_found = 2 OTHERS = 3.
BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = loghandle i_s_msg = message EXCEPTIONS OTHERS = 1.
BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING i_t_log_handle = loghandles EXCEPTIONS log_not_found = 1 save_not_allowed = 2 numbering_error = 3 OTHERS = 4.
BAL_DB_SEARCH CALL FUNCTION 'BAL_DB_SEARCH' EXPORTING i_s_log_filter = filter IMPORTING e_t_log_header = logheaders EXCEPTIONS OTHERS = 4.
BAL_DB_RELOAD CALL FUNCTION 'BAL_DB_RELOAD' EXPORTING i_t_log_handle = loghandles EXCEPTIONS no_logs_specified = 1 log_not_found = 2 OTHERS = 3.
BAL_DSP_PROFILE_STANDARD_GET CALL FUNCTION 'BAL_DSP_PROFILE_STANDARD_GET' IMPORTING e_s_display_profile = profile.
BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_log_filter = filter i_s_display_profile = profile EXCEPTIONS OTHERS = 5.
BAL_DB_DELETE CALL FUNCTION 'BAL_DB_DELETE' EXPORTING i_t_logs_to_delete = logheaders EXCEPTIONS no_logs_specified = 1 OTHERS = 2.
CALL FUNCTION 'RHEO_DBSEL' EXPORTING otype = otype plvar = act_plvar obeg = keydate oend = keydate TABLES objid = us_tab extern = ext_obj_tab EXCEPTIONS illegal_otype = 1 method_not_supported = 2 OTHERS = 3.
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 RHPROFL0 or its description.