RHPROFL0_OLD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report creates authorization profile assignments for users in an organizational structure...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 RHPROFL0_OLD 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: USGRP = User Group
Selection Text: PD = Generate
Selection Text: LIST = Dialog Mode
Selection Text: GROUP = ?...(GROUP)
Selection Text: BCODE = ?...(BCODE)
Selection Text: BASE = Generate
Selection Text: AUTO = Automatically
Title: Generate User Authorizations
Text Symbol: UP3 = Batch input folder % created and generated
Text Symbol: UP2 = PD user authorizations maintained
Text Symbol: UP1 = Batch input session % created
Text Symbol: UGR = User Group
Text Symbol: TOP = User Period Profile
Text Symbol: PDS = PD authorizations
Text Symbol: NEW = (for new USER)
Text Symbol: MOD = Processing mode
Text Symbol: MAP = Session Name
Text Symbol: MAN = Client
Text Symbol: ER2 = Error while saving batch input message
Text Symbol: ER1 = Batch input session cannot be created
Text Symbol: BCO = Init. Password
Text Symbol: BAS = Standard authorizations
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
RH_AUTHORITY_BUILD CALL FUNCTION 'RH_AUTHORITY_BUILD' EXPORTING PLVAR = PC-PLVAR BEGDA = PC-BEGDA ENDDA = PC-ENDDA BASE_PROFILE = BASE PD_PROFILE = PD TABLES PLSTE_TAB = PLSTE_TAB BASE_USER = BASE_USER BASE_TAB = BASE_TAB PD_USER = PD_USER PD_TAB = PD_TAB USER_PLSTE = USER_PLSTE.
BDC_OPEN_GROUP CALL FUNCTION 'BDC_OPEN_GROUP' EXPORTING CLIENT = SY-MANDT GROUP = GROUP USER = SY-UNAME KEEP = 'X' * holddate = holddate.
BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP' EXCEPTIONS * when "XSCK033485 OTHERS = 4.
USER_EXISTS CALL FUNCTION 'USER_EXISTS' EXPORTING BNAME = UNAME EXCEPTIONS USER_DONT_EXIST = 1 USER_EXISTS = 2 OTHERS = 3.
SUSR_GET_PROFILES_OF_USER CALL FUNCTION 'SUSR_GET_PROFILES_OF_USER' TABLES USERS = USERS PROFILES = PROFS EXCEPTIONS OTHERS = 1.
BDC_INSERT CALL FUNCTION 'BDC_INSERT' EXPORTING TCODE = 'SU01_NAV' TABLES DYNPROTAB = BDCDATA EXCEPTIONS INTERNAL_ERROR = 1 NOT_OPEN = 2 QUEUE_ERROR = 3 TCODE_INVALID = 4 OTHERS = 5.
STRUCTURE_BUILD CALL FUNCTION 'STRUCTURE_BUILD' EXPORTING PLVAR = PC-PLVAR OTYPE = $PLSTE OBJID = USER_PLSTE-PLSTE SVECT = '1' SBEGD = USER_PLSTE-BEGDA SENDD = USER_PLSTE-ENDDA WEGID = WEGID TFLAG = 'X' VFLAG = 'X' TDEPTH = 0 SFLAG = 'X' RECURS = 'X' 77AW_INT = 'X' AUTHY = SPACE CBFLAG = 'X' IMPORTING OBJECT = OBJECT ROOT = ROOT ENTRY = ENTRY CB_NR = CB EXCEPTIONS ROOT_NOT_FOUND = 01 WEGID_NOT_FOUND = 02.
STRUCTURE_ENTRY_GET CALL FUNCTION 'STRUCTURE_ENTRY_GET' EXPORTING INDEX = ROOT-PSTRU CB_NR = CB IMPORTING OBJECT = OBJECT ENTRY = ENTRY.
STRUCTURE_DELETE CALL FUNCTION 'STRUCTURE_DELETE' EXPORTING PSTRU = ROOT-PSTRU.
RH_READ_INFTY_NNNN CALL FUNCTION 'RH_READ_INFTY_NNNN' EXPORTING AUTHORITY = 'DISP' WITH_STRU_AUTH = SPACE INFTY = '1016' ISTAT = '1' EXTEND = 'X' SUBTY = ' ' BEGDA = PC-BEGDA ENDDA = PC-ENDDA TABLES INNNN = I1016 OBJECTS = OBJ EXCEPTIONS NOTHING_FOUND = 01 WRONG_CONDITION = 02.
RH_TABINFTY_EXPAND CALL FUNCTION 'RH_TABINFTY_EXPAND' EXPORTING INFTY = '1016' TABLES INNNN = I1016 INNNN_EXPAND = E1016 EXCEPTIONS NO_TABLE_INFTY = 01.
RH_READ_INFTY_NNNN CALL FUNCTION 'RH_READ_INFTY_NNNN' EXPORTING AUTHORITY = 'DISP' WITH_STRU_AUTH = SPACE INFTY = '1017' ISTAT = '1' EXTEND = 'X' SUBTY = ' ' BEGDA = PC-BEGDA ENDDA = PC-ENDDA TABLES INNNN = I1017 OBJECTS = OBJ EXCEPTIONS NOTHING_FOUND = 01 WRONG_CONDITION = 02.
RH_TABINFTY_EXPAND CALL FUNCTION 'RH_TABINFTY_EXPAND' EXPORTING INFTY = '1017' TABLES INNNN = I1017 INNNN_EXPAND = E1017 EXCEPTIONS NO_TABLE_INFTY = 01.
PATH_BUILD CALL FUNCTION 'PATH_BUILD' IMPORTING PATH_ID = WEGID TABLES 77AW = I77AW.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.