RHPREL20 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Using report RHPREL20, you can display data from the following areas for a personnel number (employee): Organizational plan Organizational assignment (overall) Organizational assignment (current) Staff assignments Further education and training Bookings with history Prebookings Cancelations Instructor function Qualifications Profile General planning data Structure display/Structure maintenance Relationship display Select a theme area once you have executed the report...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 RHPREL20 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: BEGDA = Start
Selection Text: ENDDA = End
Selection Text: PERNR = Personnel number
Selection Text: PLVAR = Plan version
Title: Display data for personnel number
Text Symbol: SEL = Selection
Text Symbol: ZTR = Period
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
RH_OBJID_REQUEST CALL FUNCTION 'RH_OBJID_REQUEST' "XMK RHOBIDF4...
ASK_PLVAR CALL FUNCTION 'ASK_PLVAR' EXPORTING D_PLVAR = PA20_PLVAR IMPORTING PLVAR = PA20_PLVAR SUBRC = PA20_SUBRC EXCEPTIONS OTHERS = 4.
ASK_PERNR CALL FUNCTION 'ASK_PERNR' EXPORTING D_PLVAR = PA20_PLVAR D_PERNR = PA20_PERNR IMPORTING R_PERNR = PA20_PERNR EXCEPTIONS OTHERS = 4.
RH_READ_OBJECT * CALL FUNCTION 'RH_READ_OBJECT' "VWMK151624 * EXPORTING "VWMK151624 * PLVAR = PA20_PLVAR "VWMK151624 * OTYPE = PA20_OTYPE "VWMK151624 * OBJID = PA20_PERNR "VWMK151624 * OINTERVAL = 'I' "VWMK151624 * EXCEPTIONS "VWMK151624 * NOT_FOUND = 4. "VWMK151624
RP_CHECK_PERNR CALL FUNCTION 'RP_CHECK_PERNR' "VWMK151624 EXPORTING "VWMK151624 BEG = HIGH_DATE "VWMK151624 PNR = PA20_PERNR "VWMK151624 EXCEPTIONS "VWMK151624 DATA_FAULT = 1 "VWMK151624 PERSON_NOT_ACTIVE = 2 "VWMK151624 PERSON_UNKNOWN = 3 "VWMK151624 EXIT_FAULT = 4 "VWMK151624 PERNR_MISSING = 5 "VWMK151624 DATE_MISSING = 6 "VWMK151624 OTHERS = 7. "VWMK151624
RH_READ_OBJECT * CALL FUNCTION 'RH_READ_OBJECT' "VWMK151624 * EXPORTING "VWMK151624 * PLVAR = PA20_PLVAR "VWMK151624 * OTYPE = PA20_OTYPE "VWMK151624 * OBJID = PA20_PERNR "VWMK151624 * OINTERVAL = SPACE "VWMK151624 * IMPORTING "VWMK151624 * SHORT = GMN_SHORT "VWMK151624 * STEXT = GMN_STEXT "VWMK151624 * EXCEPTIONS "VWMK151624 * NOT_FOUND = 4. "VWMK151624
HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' "VWMK151624 EXPORTING "VWMK151624 PERNR = PA20_PERNR "VWMK151624 INFTY = '0001' "VWMK151624 TABLES "VWMK151624 INFTY_TAB = I0001 "VWMK151624 EXCEPTIONS "VWMK151624 INFTY_NOT_FOUND = 1 "VWMK151624 OTHERS = 2. "VWMK151624
RH_AGENT_INFO CALL FUNCTION 'RH_AGENT_INFO' EXPORTING AGENT_OTYPE = PA20_OTYPE AGENT_OBJID = PA20_PERNR ACT_PLVAR = PA20_PLVAR SEARCH_DATE = AI_DATE * NO_TASK_DISPLAY = 'X' DISPLAY_ONLY = 'X' EXCEPTIONS NO_ACTIVE_PLVAR = 1 NO_ENTRY_FOUND = 2 OTHERS = 3.
RH_POSITION_PLAN_SHOW CALL FUNCTION 'RH_POSITION_PLAN_SHOW' EXPORTING ACT_PLVAR = PA20_PLVAR ACT_OTYPE = 'O' ACT_OBJID = AO_0001-ORGEH ACT_BEGDA = AO_DATE ACT_ENDDA = AO_DATE * ACT_MAINT = ' ' DISPLAY_ONLY = 'X' EXCEPTIONS ORG_UNIT_NOT_VALID = 1 PLVAR_NOT_FOUND = 2 WEGID_NOT_FOUND = 3 STRUCTURE_ERROR = 4 OTHERS = 5.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.