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

RHCHECK1 SAP ABAP Report - Check Database Consistency







RHCHECK1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Check Database Consistency The report checks data record consistency in the file HRPnnnn...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 RHCHECK1 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_RHCHECK1 - Check Database Consistency


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 RHCHECK1. "Basic submit
SUBMIT RHCHECK1 AND RETURN. "Return to original report after report execution complete
SUBMIT RHCHECK1 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: P_ADDATA = Additional Data Pointer
Selection Text: P_STATUS = Status
Selection Text: P_TARGOB = Exclude Target Objects
Selection Text: P_TBLPNT = Table Pointer
Selection Text: P_VALDIT = Validity
Title: Check Database Consistency
Text Symbol: 005 = Validity/Status
Text Symbol: 006 = Data record status not within object status
Text Symbol: 007 = Data record's validity period not within object validity period
Text Symbol: 008 = Consistency of relationship
Text Symbol: 010 = Related object
Text Symbol: 011 = Table pointer not in HRTnnnn
Text Symbol: 012 = Table pointer not in HRITABNR
Text Symbol: 013 = Additional data pointer not in HRPADnn
Text Symbol: 014 = Additional data pointer not in HRIADATANR
Text Symbol: 019 = Error (number)
Text Symbol: 020 = Disable Checks


INCLUDES used within this REPORT RHCHECK1

INCLUDE FPH5ATOP.


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 authority = 'DISP' inftb = '0' infty = space istat = space extend = space via_t777d = space TABLES innnn = buffer_infty OBJECTS = buffer_objects_to_read EXCEPTIONS OTHERS = 0.

RH_READ_INFTY CALL FUNCTION 'RH_READ_INFTY' EXPORTING authority = 'DISP' inftb = '0' infty = space istat = space extend = space via_t777d = space TABLES innnn = buffer_infty OBJECTS = buffer_objects_to_read EXCEPTIONS OTHERS = 0.

HR_READ_T777BIRTH CALL FUNCTION 'HR_READ_T777BIRTH' EXPORTING check_extotype = infty_tab-otype check_rsign = check_rsign check_relat = check_relat check_intotype = check_intotype IMPORTING return_birthx = return_birthx return_highendda = return_highendda.

HR_READ_T777BIRTH CALL FUNCTION 'HR_READ_T777BIRTH' EXPORTING check_extotype = objec-otype check_rsign = check_rsign check_relat = check_relat check_intotype = infty_tab-otype IMPORTING return_birthx = return_birthx return_highendda = return_highendda.

RH_GET_TABNR CALL FUNCTION 'RH_GET_TABNR' EXPORTING set = ct_wplog ppnnn = i777d-ppnnn IMPORTING tabnr = ct_tabnr EXCEPTIONS tabnr_not_found = 01.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_buffer_active = ' ' i_structure_name = 'HRCHECK1' i_bypassing_buffer = 'X' CHANGING ct_fieldcat = gt_fieldcatalog.

RH_BASE_AUTHORITY_CHECK CALL FUNCTION 'RH_BASE_AUTHORITY_CHECK' EXPORTING fcode = 'DISP' plvar = p_plvar otype = p_otype infty = '1000' subty = space istat = space EXCEPTIONS no_base_authority = 4.

RH_BASE_AUTHORITY_CHECK CALL FUNCTION 'RH_BASE_AUTHORITY_CHECK' EXPORTING fcode = 'DISP' plvar = p_plvar otype = p_otype infty = '1001' subty = space istat = space EXCEPTIONS no_base_authority = 4.

RH_STRU_AUTHORITY_CHECK CALL FUNCTION 'RH_STRU_AUTHORITY_CHECK' EXPORTING * FCODE = 'DISP' "??? alte Version fcode = 'DISP' plvar = p_plvar otype = p_otype objid = p_objid EXCEPTIONS OTHERS = 4.



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