HCM Program Custom development Interface

Integration Extensions Between SuccessFactors Employee Central and On-Premise Payroll and Time Management

Short answer: Extensions that complete the standard replication between Employee Central and on-premise SAP payroll and time management: local personnel number mapping, work schedules and time accounts, payroll lock status, project and company asset data, and publishing payslips to the employee portal. Every flow runs with a traceable interface log.

Estimated effort
L · 30–45 working days
System
ECC and S/4HANA
Tables
9
Scope
Global
Built by
NeKuDos Teknoloji
Last updated

Why is the standard not enough?

The standard replication from Employee Central to the on-premise system (HRSFEC_PTP_EE_REPL) writes core employee data to infotypes; however, the company's local personnel number rules, custom fields and cost object determination must be adjusted to company rules. In the other direction, the lock status that blocks changes while payroll runs, leave and overtime balances, project and asset data and the payslip do not go to Employee Central or the portal out of the box.

Who uses it? HR information systems teams, payroll specialists, time management owners and integration developers.

Closest standard alternatives

  • PA30 Maintain HR Master Data. Manual infotype maintenance; no mapping or feedback to Employee Central.
  • PU12 Connection to Third-Party Payroll (Interface Toolbox). The interface toolbox produces file-based exports; it has no ready flows for time accounts, payroll lock or payslip publishing.
  • PE51 HR Form Editor. Payslip form design; does not publish the payslip to the portal.

Tables used

The tables the program reads and updates. ECC and S/4HANA differences are marked separately.

TableRoleAccessSystem
PA0000HR Master Record: Infotype 0000 (Actions)Actions and employment statusRead / writeECC + S/4
PA0001HR Master Record: Infotype 0001 (Organizational Assignment)Organizational assignment: company code, org unit, cost centerRead / writeECC + S/4
PA0003HR Master Record: Infotype 0003 (Payroll Status)Payroll status: payroll lock, earliest retro dateReadECC + S/4
PA0007HR Master Record: Infotype 0007 (Planned Working Time)Planned working time: work schedule ruleRead / writeECC + S/4
PA2006HR Time Record: Infotype 2006 (Absence Quotas)Absence quotas: entitlement and usageReadECC + S/4
PA0315HR Master Record: Infotype 0315 (Time Sheet Defaults)Time sheet defaults: sender cost center, WBS elementReadECC + S/4
PA0040HR Master Record: Infotype 0040 (Objects on Loan)Objects on loanReadECC + S/4
PA0105HR Master Record: Infotype 0105 (Communications)Communication: user ID and emailRead / writeECC + S/4
HRPY_RGDIRDirectory for Payroll ResultsPayroll result directory: period, payment date, sequence numberReadECC + S/4

BAPIs and functions used

  • HR_INFOTYPE_OPERATIONMaintain HR Infotype Record. Writes incoming data to infotypes
  • BAPI_EMPLOYEE_ENQUEUELock Employee. Locks the employee before writing
  • BAPI_EMPLOYEE_DEQUEUEUnlock Employee. Releases the employee lock
  • HR_READ_INFOTYPERead HR Infotype Records. Reads infotype data for outbound flows
  • HR_TIME_RESULTS_GETRead Time Evaluation Results. Reads time evaluation results for overtime balances
  • HR_PAYROLL_PERIODS_GETGet Payroll Periods. Finds the open payroll period
  • PYXX_READ_PAYROLL_RESULTRead Payroll Result. Reads the finished payroll result
  • CONVERT_ABAPSPOOLJOB_2_PDFConvert ABAP Spool Request to PDF. Converts the payslip to PDF

Selection screen parameters

ParameterDescriptionTypeReference fieldRequiredExample
P_FLOWFlow: employee mapping / time accounts / payroll lock / project-assets / payslipRadio button—YesBordro pusulası
S_PERNRPersonnel numberRange / multiplePA0000-PERNRNo00012045
S_BUKRSCompany codeRange / multiplePA0001-BUKRSNo1000
P_FPPERPayroll periodSingle valueHRPY_RGDIR-FPPERNo202611
P_DELTAOnly changes since the last transferCheckbox—NoX
P_TESTTest run (do not send)Checkbox—No—

Result list columns

#ColumnSource
1TimeCalculated Message time
2FlowCalculated Mapping, time account, payroll lock, project-assets or payslip
3DirectionCalculated Inbound or outbound
4Personnel no.PA0001-PERNR
5NamePA0001-ENAME
6DetailCalculated Infotype, balance or period transferred
7StatusCalculated Success, error or reprocessed
8MessageCalculated Error or information text

Sample result list

TimeFlowDirectionPersonnel no.NameDetailStatusMessage
06:02Employee mappingInbound00012045Ayşe ÖrnekIT0000, IT0001, IT0007Success
06:05Employee mappingInbound00012051Can DemoIT0007ErrorWork schedule VARD3 not in the mapping table
22:30Time accountOutbound00012045Ayşe ÖrnekAnnual leave remaining 11.5 daysSuccess
09:00Payroll lockOutbound202611SuccessPayroll running status sent
18:40PayslipOutbound00012051Can Demo202611SuccessPDF published to the portal
A view built with fictional sample data; not real system data.

How does the program work?

  1. Employee mapping: BAdI HRSFEC_B_EXT_PERNR_MAP maps the Employee Central user ID to the company’s local personnel number rule; on rehire the old number is kept. HRSFEC_B_CHANGE_INFOTYPE_DATA moves custom fields (e.g. local ID, union, shift group) to the relevant infotypes, and HRSFEC_B_DETERM_COST_OBJECT determines the cost center by company rule.
  2. Work schedule: the work schedule in Employee Central is mapped to a work schedule rule in PA0007 (planned working time); a rule missing from the mapping table is logged as an error in the interface log.
  3. Time accounts: PA2006 leave entitlements and usage (ANZHL, KVERB) and the overtime balances from time evaluation results (HR_TIME_RESULTS_GET) are sent daily to Employee Central time account balances.
  4. Payroll lock: when the payroll period opens (HR_PAYROLL_PERIODS_GET) and the payroll status in PA0003 changes, a ‘payroll running’ status is sent to Employee Central, so retroactive changes trigger a warning until exit. When the period closes, the lock is removed.
  5. Project and assets: PA0315 (time sheet defaults: sender cost center, WBS element) and PA0040 (objects on loan) are sent to the employee’s Employee Central profile or the portal.
  6. Payslip: finished payroll results are found in HRPY_RGDIR (PYXX_READ_PAYROLL_RESULT), the payslip form (PE51) is converted to PDF (CONVERT_ABAPSPOOLJOB_2_PDF) and published to the employee portal through a service; the same payslip is never sent twice.
  7. Incoming data is written with HR_INFOTYPE_OPERATION while the employee is locked (BAPI_EMPLOYEE_ENQUEUE). Transfers run through SAP Integration Suite (Cloud Integration) over SOAP/OData; an interface log is kept for every message and failed messages can be reprocessed. The solution works with the same tables in on-premise HCM on S/4HANA (H4S4) and in ECC HCM.

Performance notes

Run the balance and payslip flows only for changed employees (change date, new payroll sequence); do not send all employees every day. Read payroll results once per employee and publish payslips in packages; do not schedule heavy flows during the payroll run.

Features

  • Line-by-line result and error log Every message is written to the interface log with direction, employee and result.
  • Download failed lines as a separate file Failed messages are reprocessed from the log after correction.
  • Runs as a background job Time account and payslip flows run as scheduled jobs.
  • Test mode (check without posting) Outbound flows can be previewed without sending.

Authorization objects

  • P_ORGINInfotype read and write authorization (for the interface user)
  • P_PCLXAuthorization to read payroll and time result clusters
  • S_SERVICEAuthorization to call the inbound services
  • S_RFCRemote function call authorization

Frequently asked questions

Does it replace the standard Employee Central replication?

No. Standard replication still moves the core data; these extensions add the mapping rules through SAP-provided BAdIs and complete the feedback flows the standard does not offer.

How does the payslip reach the employee?

The payslip is published as a PDF to the employee portal, where only that employee can see it. If email delivery is needed, it can be installed together with the payslip email solution.

Does the payroll lock fully block changes in Employee Central?

The lock status is passed to Employee Central and a warning or block is applied there according to the rule set up; the behavior is agreed with HR during installation.

Related reports

HCM Program Custom Form

Email Payslips as PDF to Employees Program

A custom program that, after the payroll period is closed, turns each employee's standard remuneration statement (payslip) into a personal PDF and …

HRPY_RGDIR · PA0105 · PA0001 · PA0002

Let us build this program for your system

Briefly describe your system and expectations. We will clarify the scope and come back with an effort and price quote.

Related report: Integration Extensions Between SuccessFactors Employee Central and On-Premise Payroll and Time Management