SAP Reports / Programs | Personnel Management | Organizational Structure | Staffing(PA-OS-ST) SAP PA

RHREPL20 SAP ABAP Report - Replace User with Person in Staff Assignments







RHREPL20 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for In the existing holder relationships with the position, users can be replaced with relevant persons...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 RHREPL20 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

RE_RHREPL20 - Replace User With Person


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 RHREPL20. "Basic submit
SUBMIT RHREPL20 AND RETURN. "Return to original report after report execution complete
SUBMIT RHREPL20 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: PCHPLVAR = Plan version
Selection Text: REPL = Replace w/individual selection
Selection Text: SEARK = Organizational unit
Selection Text: SEL = Standard selection screen
Selection Text: SORGX = Positions in org.structure
Selection Text: TEST = Test
Title: Replace User with Person in Staff Assignments
Text Symbol: 001 = Plan version
Text Symbol: 002 = Organizational unit
Text Symbol: OPT = Options
Text Symbol: SEL = Selection


INCLUDES used within this REPORT RHREPL20

No INCLUDES are used within this REPORT code!


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 = PCHPLVAR EXCEPTIONS NO_ACTIVE_PLVAR = 1 OTHERS = 2.

RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING PLVAR = PCHPLVAR OTYPE = $ORGUNIT OBJID = OBJID BEGDA = LOW_DATE ENDDA = HIGH_DATE IMPORTING SHORT = SHORT STEXT = STEXT EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

RH_DETERMINE_ORG_OBJID CALL FUNCTION 'RH_DETERMINE_ORG_OBJID' EXPORTING ORG_OBJECT_TYPE = ACT_OTYPE ACT_PLVAR = ACT_PLVAR ACT_SEARCH_STRING = SEARCH_FIELD IMPORTING ORG_OBJECT_OBJID = ACT_OBJID EXCEPTIONS NO_ACTIVE_PLVAR = 1 NO_OBJECT_ID_SELECTED = 2 OTHERS = 3.

RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING PLVAR = ACT_PLVAR OTYPE = ACT_OTYPE REALO = ACT_REALO ISTAT = '1' IMPORTING SHORT = ACT_SHORT STEXT = ACT_STEXT EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING PLVAR = ACT_PLVAR OTYPE = ACT_OTYPE REALO = ACT_REALO ISTAT = '1' IMPORTING SHORT = ACT_SHORT STEXT = ACT_STEXT EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

RH_MULTIPLE_OTYPE_SEARCH CALL FUNCTION 'RH_MULTIPLE_OTYPE_SEARCH' EXPORTING ACT_SEARCH = SEARCH_FIELD ACT_PLVAR = ACT_PLVAR IMPORTING SELECTED_OBJID = ACT_REALO TABLES OTYPE_TAB = OTYPE_TAB EXCEPTIONS NOTHING_FOUND = 1 NOTHING_SELECTED = 2 NO_ACTIVE_PLVAR = 3 OTHERS = 4.

RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING PLVAR = ACT_PLVAR OTYPE = ACT_OTYPE REALO = ACT_REALO ISTAT = '1' IMPORTING SHORT = ACT_SHORT STEXT = ACT_STEXT EXCEPTIONS NOT_FOUND = 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 RHREPL20 or its description.