SAP Reports / Programs

HR_SYNC_PERSON SAP ABAP Report - Synchronize Employees - Business Partners







HR_SYNC_PERSON is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report generates business partners of the Employee role from HR master data...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 HR_SYNC_PERSON 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_HR_SYNC_PERSON - For Report HR_SYNC_PERSON


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 HR_SYNC_PERSON. "Basic submit
SUBMIT HR_SYNC_PERSON AND RETURN. "Return to original report after report execution complete
SUBMIT HR_SYNC_PERSON VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Synchronize Employees - Business Partners
Text Symbol: 000 = Employees
Text Symbol: 001 = All Employees of Organizational Unit(s)
Text Symbol: 002 = Changes Since
Text Symbol: 003 = Synchronize Employees - Business Partners
Text Symbol: 004 = Number of employees synchronized successfully:


INCLUDES used within this REPORT HR_SYNC_PERSON

INCLUDE HR_SYNC_PERSON_TOP . " GLOBAL DATA
INCLUDE SYNC_PERSON_F01.
INCLUDE SYNC_PERSON_F02.
INCLUDE SYNC_PERSON_F03.


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:

HCM_GET_LAST_CHANGE CALL FUNCTION 'HCM_GET_LAST_CHANGE' IMPORTING ev_last_change = gv_last_change.

HCM_PROCESS_BLOCK CALL FUNCTION 'HCM_PROCESS_BLOCK' EXPORTING it_pernr = gt_block IMPORTING et_errors = gt_errors ev_amount = gv_amount.

HCM_SET_LAST_CHANGE CALL FUNCTION 'HCM_SET_LAST_CHANGE' EXPORTING iv_last_change = sy-datum.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'HCM_SYNC_ERROR' CHANGING ct_fieldcat = gt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_buffer_active = ' ' i_callback_program = sy-repid is_layout = gs_layout it_fieldcat = gt_fieldcat i_grid_settings = gs_grid_settings TABLES t_outtab = gt_all_errors EXCEPTIONS program_error = 1 OTHERS = 2.



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