SAP Reports / Programs | Basis Components | Business Management | Organizational Management(BC-BMT-OM) SAP BC

RHUNIT00_BASE SAP ABAP Report - Merging of PD Infotype Records







RHUNIT00_BASE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Merging of infotype records Merge infotypes This report enables you to merge split infotypes (infotype 1000 and 1001) that overlap each other or are arranged directly after one another 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_BASE into the relevant SAP transactions such as SE38 or SE80


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 RHUNIT00_BASE. "Basic submit
SUBMIT RHUNIT00_BASE AND RETURN. "Return to original report after report execution complete
SUBMIT RHUNIT00_BASE 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: VERK = Join Relationship
Selection Text: TEST = Test
Selection Text: RELAT = Relationship
Selection Text: OBJE = Join Object
Title: Merging of PD Infotype Records
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:
Text Symbol: 016 = Infotyp
Text Symbol: 017 = Subtyp
Text Symbol: 018 = Status
Text Symbol: 019 = Start Date
Text Symbol: 023 = Abbr.
Text Symbol: 022 = Lang.
Text Symbol: 021 = Relat.Object
Text Symbol: 020 = End Date


INCLUDES used within this REPORT RHUNIT00_BASE

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_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_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_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 = 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'.



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 RHUNIT00_BASE or its description.