RHSP_TEMP_ASSIGNMENT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report creates a list of temporary assignments for individual employees over a specified period...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 RHSP_TEMP_ASSIGNMENT into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
PP6I - Temp. Assgmt List for Shift Planning
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: PCHSEARK = Search term
Selection Text: PCHOBJID = Object ID
Selection Text: OBJTYPE = Object Type
Title: Display Temporary Assignment List
Text Symbol: 215 = Temp. assigned to...
Text Symbol: 216 = Temporarily assigned to
Text Symbol: 218 = Cctr temp. asg.
Text Symbol: 219 = Cctr temp. asg.
Text Symbol: 220 = Cost center temp. assgmt
Text Symbol: 221 = Obj. ID temp. assgmt
Text Symbol: 222 = Obj. ID temp. assgmt
Text Symbol: 223 = Obj. ID temp. assignment
Text Symbol: 224 = Hours
Text Symbol: 227 = Date
Text Symbol: 229 = ShrdAvail.
Text Symbol: 230 = shared availability
Text Symbol: 231 = shared availability
Text Symbol: 232 = Organizational unit:
Text Symbol: 233 = organizational units:
Text Symbol: 234 = Person:
Text Symbol: 235 = Persons:
Text Symbol: 236 = User:
Text Symbol: 237 = Date:
Text Symbol: 238 = Reporting period:
Text Symbol: 301 = Temporary assignment list
Text Symbol: 001 = Select organizational unit
Text Symbol: 002 = Select person
Text Symbol: 003 = Object Type
Text Symbol: 101 = Enter profile
Text Symbol: 102 = No temporary assignments in selected period
Text Symbol: 103 = Error reading infotype 1001
Text Symbol: 104 = Error reading infotype 0001
Text Symbol: 105 = Error reading organizational unit
Text Symbol: 106 = already selected
Text Symbol: 107 = Error reading infotype 2003
Text Symbol: 108 = Error reading personal work schedule
Text Symbol: 109 = No object text available
Text Symbol: 110 = Error during employee selection
INCLUDE RHODAT00.
INCLUDE MAKROS.
INCLUDE RHXMACRO.
INCLUDE INCLUDE_ABORDREPORT.
No SAP DATABASE tables are accessed within this REPORT code!
ASK_PLVAR CALL FUNCTION 'ASK_PLVAR' EXPORTING d_plvar = plvar IMPORTING plvar = plvar subrc = subrc.
HR_SHIFTPLAN_GET_PROFILE CALL FUNCTION 'HR_SHIFTPLAN_GET_PROFILE' EXPORTING always_popup = ' ' IMPORTING otext = objtytxt CHANGING profile = pdsp_prfl EXCEPTIONS nothing_found = 1 OTHERS = 2.
RH_MACO CALL FUNCTION 'RH_MACO' EXPORTING seark = pchseark plvar = plvar otype = objtype set_mode = 'X' TABLES sel_objects = sel_obj_tab EXCEPTIONS f15 = 1 wrong_condition = 2 nothing_found = 3 OTHERS = 4.
RH_STRU_AUTHORITY_CHECK CALL FUNCTION 'RH_STRU_AUTHORITY_CHECK' EXPORTING fcode = 'DISP' plvar = plvar otype = objtype objid = pchobjid-low with_base_ac = 'X' EXCEPTIONS no_stru_authority = 1 no_stru_authority_hyper = 2 no_stru_authority_at_all = 3 no_base_authority = 4 OTHERS = 5.
RH_READ_INFTY CALL FUNCTION 'RH_READ_INFTY' EXPORTING authority = 'DISP' with_stru_auth = 'X' infty = '1001' istat = ' ' extend = 'X' subty = 'B067' begda = abordnungen-auswahl_begda endda = abordnungen-auswahl_endda condition = '00000' inftb = '1' sort = 'X' via_t777d = ' ' TABLES innnn = p1001 OBJECTS = objects_1001 EXCEPTIONS all_infty_with_subty = 1 nothing_found = 2 no_objects = 3 wrong_condition = 4 OTHERS = 5.
RH_READ_INFTY CALL FUNCTION 'RH_READ_INFTY' EXPORTING authority = 'DISP' with_stru_auth = 'X' infty = '1001' istat = ' ' extend = 'X' subty = 'B071' begda = abordnungen-auswahl_begda endda = abordnungen-auswahl_endda condition = '00000' inftb = '1' sort = 'X' via_t777d = ' ' TABLES innnn = p1001_2 OBJECTS = objects_1001 EXCEPTIONS all_infty_with_subty = 1 nothing_found = 2 no_objects = 3 wrong_condition = 4 OTHERS = 5.
HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = p1001-objid infty = '0001' begda = p1001-begda "xqi 1507386 endda = p1001-endda "xqi 1507386 TABLES infty_tab = p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.
HR_SHIFTPLAN_EMPLOYEES CALL FUNCTION 'HR_SHIFTPLAN_EMPLOYEES' EXPORTING profile_id = rpd_profile_id begin_date = rpd_begda end_date = rpd_endda plvar = rpd_plvar with_pos_job_tab = 'X' sep_temp_assignments = 'X' change_direction = ' ' TABLES root_objects = rpd_root_objects objects_found = rpd_home_objects temp_assign_away = away_1001 EXCEPTIONS no_valid_plvar = 1 no_valid_profile = 2 OTHERS = 3.
RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING plvar = rpd_plvar otype = rpd_home_objects-otype_in objid = rpd_abordnungen-objid_home istat = '1' begda = rpd_abordnungen-auswahl_begda endda = rpd_abordnungen-auswahl_endda IMPORTING stext = rpd_abordnungen-obj_home EXCEPTIONS not_found = 1 OTHERS = 2.
RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING plvar = rpd_plvar otype = away_1001-sclas objid = rpd_abordnungen-objid_abordnung istat = '1' begda = rpd_abordnungen-abordnung_begda endda = rpd_abordnungen-abordnung_endda IMPORTING stext = rpd_abordnungen-obj_abordnung EXCEPTIONS not_found = 1 OTHERS = 2.
CALL FUNCTION 'RH_READ_OBJECT' EXPORTING plvar = plvar otype = otype objid = objid begda = begda endda = endda IMPORTING stext = full_name EXCEPTIONS not_found = 1 OTHERS = 2.
F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'OTYPE' dynpprog = dynprog dynpnr = dynnr dynprofield = 'OBJTYPE' window_title = window_title value_org = 'S' TABLES value_tab = value_tab EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.
DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-cprog dynumb = sy-dynnr TABLES dynpfields = dynpro_fields EXCEPTIONS OTHERS.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = alv_repid i_internal_tabname = 'SHOW_ABORDNUNGEN' i_inclname = 'INCLUDE_ABORDREPORT' CHANGING ct_fieldcat = alv_fieldcat.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_buffer_active = ' ' i_callback_program = alv_repid i_callback_pf_status_set = 'ALV_SET_PF_STATUS' i_structure_name = 'SHOW_ABORDNUNGEN' it_fieldcat = alv_fieldcat it_events = alv_events is_variant = alv_variant i_save = alv_save "R45K000033HP is_print = alv_print TABLES t_outtab = show_abordnungen.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = alv_list_commentary.
RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING plvar = plvar otype = objtype objid = alc_objid begda = abordnungen-auswahl_begda endda = abordnungen-auswahl_endda IMPORTING * stext = wa_alc_sel_org. "xqi 925528
HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = p_abordnungen-pernr infty = '2003' begda = p_abordnungen-datum_abordnung endda = p_abordnungen-datum_abordnung TABLES infty_tab = p2003 EXCEPTIONS infty_not_found = 1 OTHERS = 2.
HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = p_abordnungen-pernr infty = '0001' begda = p_abordnungen-datum_abordnung endda = p_abordnungen-datum_abordnung TABLES infty_tab = p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.
HR_PERSONAL_WORK_SCHEDULE CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE' EXPORTING pernr = p_abordnungen-pernr begda = p_abordnungen-datum_abordnung endda = p_abordnungen-datum_abordnung refresh = 'X' working_hours = 'X' i0001_i0007_error = '0' TABLES perws = pers_arb_plan EXCEPTIONS error_occured = 1 abort_occured = 2 OTHERS = 3.
SELECT_OPTIONS_RESTRICT CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' EXPORTING program = 'RHSP_TEMP_ASSIGNMENT' restriction = restrict db = ' ' EXCEPTIONS too_late = 1 repeated = 2 selopt_without_options = 3 selopt_without_signs = 4 invalid_sign = 5 empty_option_list = 6 invalid_kind = 7 repeated_kind_a = 8 OTHERS = 9.
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 RHSP_TEMP_ASSIGNMENT or its description.
RHSP_TEMP_ASSIGNMENT - Display Temporary Assignment List RHSP_TEMP_ASSIGNMENT - Display Temporary Assignment List RHSP_ADMIN_IT0439 - Create infotype 0439 with subtype 0005 RHSP_ADMIN_IT0439 - Create infotype 0439 with subtype 0005 RHSPP_TOP - RHSPPTOP RHSPP_CDOC_PSOLL_02 - Change Documents for Target Plan by Employee