RHUNIT00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Combining Infotype Records This report serves to combine infotype records, which are split (infotype 1000 and 1001) and which overlap or are assigned successively, into one record...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 RHUNIT00 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: VERK = Join relationship
Selection Text: TEST = Test
Selection Text: RELAT = Link text strings
Selection Text: OBJE = Join object
Title: Merge infotype records
Text Symbol: 023 = Abbr.
Text Symbol: 022 = Lang.
Text Symbol: 021 = Relat.Object
Text Symbol: 020 = End date
Text Symbol: 019 = Start date
Text Symbol: 018 = Status
Text Symbol: 017 = Subtyp
Text Symbol: 016 = IT
Text Symbol: 015 = ID
Text Symbol: 014 = Object
Text Symbol: 013 = PlanVer
Text Symbol: 012 = updated for the following records.
Text Symbol: 011 = not updated successfully for the following records
Text Symbol: 010 = should be updated for the following records.
Text Symbol: 009 = Merge records
Text Symbol: 008 = No records for infotype 1000 should be merged.
Text Symbol: 007 = was not merged successfully into follwing record.
Text Symbol: 004 = No records for infotype 1001 should be merged.
Text Symbol: 003 = merged into following record:
Text Symbol: 002 = should be merged into following record:
Text Symbol: 001 = Foll. records:
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
RH_READ_INFTY CALL FUNCTION 'RH_READ_INFTY' EXPORTING infty = '1001' istat = ' ' TABLES innnn = wplog objects = objec_tab EXCEPTIONS all_infty_with_subty = 1 nothing_found = 2 no_objects = 3 wrong_condition = 4 OTHERS = 5.
RH_UNIT_RECORD CALL FUNCTION 'RH_UNIT_RECORD' TABLES record_tab = p1001_tab unit_tab = unit_tab.
RH_DELETE_INFTY CALL FUNCTION 'RH_DELETE_INFTY' EXPORTING vtask = 'B' TABLES innnn = record_ta EXCEPTIONS error_during_delete = 1 no_authorization = 2 corr_exit = 4 OTHERS = 5.
RH_CLEAR_BUFFER CALL FUNCTION 'RH_CLEAR_BUFFER'.
RH_CLEAR_PLOG_TAB CALL FUNCTION 'RH_CLEAR_PLOG_TAB'.
RH_INSERT_INFTY CALL FUNCTION 'RH_INSERT_INFTY' EXPORTING vtask = 'B' TABLES innnn = unit_innn EXCEPTIONS no_authorization = 1 error_during_insert = 2 repid_form_initial = 3 corr_exit = 4 begda_greater_endda = 5 OTHERS = 6.
RH_CLEAR_BUFFER CALL FUNCTION 'RH_CLEAR_BUFFER'.
RH_CLEAR_PLOG_TAB CALL FUNCTION 'RH_CLEAR_PLOG_TAB'.
RH_UPDATE_DATABASE CALL FUNCTION 'RH_UPDATE_DATABASE' EXPORTING vtask = 'D' clear_buffer = 'X' EXCEPTIONS corr_exit = 1 OTHERS = 2.
RH_CLEAR_BUFFER CALL FUNCTION 'RH_CLEAR_BUFFER'.
RH_CLEAR_PLOG_TAB CALL FUNCTION 'RH_CLEAR_PLOG_TAB'.
RH_READ_INFTY CALL FUNCTION 'RH_READ_INFTY' EXPORTING infty = '1000' istat = ' ' TABLES innnn = p1000 objects = objec_tab EXCEPTIONS all_infty_with_subty = 1 nothing_found = 2 no_objects = 3 wrong_condition = 4 OTHERS = 5.
RH_UNIT_RECORD CALL FUNCTION 'RH_UNIT_RECORD' TABLES record_tab = record_tab unit_tab = unit_tab.
RH_UNIT_RECORD CALL FUNCTION 'RH_UNIT_RECORD' TABLES record_tab = language_tab unit_tab = end_tab.
RH_DELETE_INFTY_DIRECT CALL FUNCTION 'RH_DELETE_INFTY_DIRECT' EXPORTING vtask = 'B' TABLES innnn = record_ta EXCEPTIONS no_authorization = 1 error_during_delete = 2 corr_exit = 3 OTHERS = 4.
RH_CLEAR_BUFFER CALL FUNCTION 'RH_CLEAR_BUFFER'.
RH_CLEAR_PLOG_TAB CALL FUNCTION 'RH_CLEAR_PLOG_TAB'.
RH_INSERT_INFTY_DIRECT CALL FUNCTION 'RH_INSERT_INFTY_DIRECT' EXPORTING vtask = 'B' TABLES innnn = unit_innn EXCEPTIONS no_authorization = 1 error_during_insert = 2 repid_form_initial = 3 corr_exit = 4 begda_greater_endda = 5 OTHERS = 6.
CALL FUNCTION 'RH_CLEAR_BUFFER'.
RH_CLEAR_PLOG_TAB CALL FUNCTION 'RH_CLEAR_PLOG_TAB'.
RH_UPDATE_DATABASE CALL FUNCTION 'RH_UPDATE_DATABASE' EXPORTING vtask = 'D' clear_buffer = 'X' EXCEPTIONS corr_exit = 1 OTHERS = 2.
RH_CLEAR_BUFFER CALL FUNCTION 'RH_CLEAR_BUFFER'.
RH_CLEAR_PLOG_TAB CALL FUNCTION 'RH_CLEAR_PLOG_TAB'.
RH_DELETE_INFTY_DIRECT CALL FUNCTION 'RH_DELETE_INFTY_DIRECT' EXPORTING vtask = 'B' TABLES innnn = record_ta EXCEPTIONS no_authorization = 1 error_during_delete = 2 corr_exit = 3 OTHERS = 4.
RH_CLEAR_BUFFER CALL FUNCTION 'RH_CLEAR_BUFFER'.
RH_CLEAR_PLOG_TAB CALL FUNCTION 'RH_CLEAR_PLOG_TAB'.
RH_INSERT_INFTY_DIRECT CALL FUNCTION 'RH_INSERT_INFTY_DIRECT' EXPORTING vtask = 'B' TABLES innnn = unit_innn EXCEPTIONS no_authorization = 1 error_during_insert = 2 repid_form_initial = 3 corr_exit = 4 begda_greater_endda = 5 OTHERS = 6.
RH_CLEAR_BUFFER CALL FUNCTION 'RH_CLEAR_BUFFER'.
RH_CLEAR_PLOG_TAB CALL FUNCTION 'RH_CLEAR_PLOG_TAB'.
RH_UPDATE_DATABASE CALL FUNCTION 'RH_UPDATE_DATABASE' EXPORTING vtask = 'D' clear_buffer = 'X' EXCEPTIONS corr_exit = 1 OTHERS = 2.
RH_CLEAR_BUFFER CALL FUNCTION 'RH_CLEAR_BUFFER'.
RH_CLEAR_PLOG_TAB CALL FUNCTION 'RH_CLEAR_PLOG_TAB'.
RH_DELETE_INFTY_DIRECT CALL FUNCTION 'RH_DELETE_INFTY_DIRECT' EXPORTING vtask = 'B' TABLES innnn = diff_tab EXCEPTIONS no_authorization = 1 error_during_delete = 2 corr_exit = 3 OTHERS = 4.
RH_CLEAR_BUFFER CALL FUNCTION 'RH_CLEAR_BUFFER'.
RH_CLEAR_PLOG_TAB CALL FUNCTION 'RH_CLEAR_PLOG_TAB'.
RH_INSERT_INFTY_DIRECT CALL FUNCTION 'RH_INSERT_INFTY_DIRECT' EXPORTING vtask = 'B' TABLES innnn = verla_tab EXCEPTIONS no_authorization = 1 error_during_insert = 2 repid_form_initial = 3 corr_exit = 4 begda_greater_endda = 5 OTHERS = 6.
RH_CLEAR_BUFFER CALL FUNCTION 'RH_CLEAR_BUFFER'.
RH_CLEAR_PLOG_TAB CALL FUNCTION 'RH_CLEAR_PLOG_TAB'.
RH_UPDATE_DATABASE CALL FUNCTION 'RH_UPDATE_DATABASE' EXPORTING vtask = 'D' clear_buffer = 'X' EXCEPTIONS corr_exit = 1 OTHERS = 2.
RH_CLEAR_BUFFER CALL FUNCTION 'RH_CLEAR_BUFFER'.
RH_CLEAR_PLOG_TAB CALL FUNCTION 'RH_CLEAR_PLOG_TAB'.
RH_CLEAR_BUFFER CALL FUNCTION 'RH_CLEAR_BUFFER'.
RH_CLEAR_PLOG_TAB CALL FUNCTION 'RH_CLEAR_PLOG_TAB'.
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 RHUNIT00 or its description.
RHUNIT00 - Merge infotype records RHUNIT00 - Merge infotype records RHUMTABS - Completion of New Tables T77ST, AT, 8M, WT, AB, AM, PQ, PS, VD, VE, VF RHUMTABS - Completion of New Tables T77ST, AT, 8M, WT, AB, AM, PQ, PS, VD, VE, VF RHUMST_HRPADUZ - Conversion of add. data infotype 1001 subtype 065 - HRPADNN -> HRPADUZ RHUMST_HRPADUZ - Conversion of add. data infotype 1001 subtype 065 - HRPADNN -> HRPADUZ