On this page
In most organisations, HR and finance already agree on the numbers. What they disagree on is where those numbers live, in what structure, and who is accountable when the two do not match at month end. Integration is the discipline of removing that gap permanently rather than staffing it.
What actually needs to move
The traffic between an HR system and an ERP is narrower than people assume, but it is dense. Outbound from HR: the payroll journal entry, split by cost centre, department, project and account; provisions for leave and end-of-service; the bank transfer file; vendor-style postings for third parties such as insurance and unions; and headcount or cost data for budgeting. Inbound to HR: the chart of accounts, cost centre structure, project and work-order codes, employee-linked vendor records where they exist, and sometimes the approved budget itself for validation.
The interesting question is not the list. It is what happens when the structure on either side changes — a new cost centre, a reorganised department tree, a project closed mid-month. Integration that assumes stability is integration that breaks quarterly.
Four integration patterns, ranked
The first and best is API integration. The HR system calls the ERP's published interfaces — Oracle REST services and Fusion web services, SAP OData or BAPI/RFC endpoints — posting the journal, receiving the document number, and recording the confirmation against the payroll run. It is transactional: either the posting succeeds and is recorded, or it fails and is visibly retried. Nothing is assumed.
The second is a governed file exchange. HR produces a structured file in the ERP's expected import format, and the ERP consumes it on a schedule. This is legitimate when the ERP is locked down or hosted by a third party who will not expose endpoints. It works if the file is generated by the system rather than assembled by hand and if the import result is fed back so failures surface.
The third is a middleware or integration platform in between — a bus, an iPaaS, or the customer's own integration layer. This adds transformation and routing flexibility and is common in groups with several ERPs. The cost is an extra system to operate and one more place a mapping can drift.
The fourth is direct database writes into ERP tables. It is fast to build and the wrong answer almost always. It bypasses ERP validation, breaks on upgrade, and produces postings that the ERP's own consistency checks never saw. Where an existing integration works this way, replacing it is usually the highest-value item in a modernisation plan.
Why API is the one that survives audit
The audit question is never 'did the number arrive'. It is 'can you show that this journal line corresponds to this payroll result, that it was posted once, and that nothing was edited in between'. API integration answers that structurally: each posting has a request, a response, a document reference and a timestamp, and the payroll run holds the link. File-based integration can answer it if the acknowledgement loop is closed. Database writes cannot answer it at all.
There is a second-order benefit. When posting is transactional, reruns become safe on the finance side too. Reopen payroll, correct, rerun, and the integration can reverse and repost rather than leaving finance to find and unwind a bad batch manually.
How LoginHR is built for this
LoginHR supports all four patterns because customer environments genuinely differ, but it is designed API-first. The accounting distribution is not a report; it is a configurable mapping layer. Salary components, employer contributions, provisions and deductions are each mapped to accounts and cost dimensions using the same expression engine that drives payroll itself — so a rule like 'overtime for production cost centres posts to a different account than overtime for admin' is configuration, not code.
Because the mapping is expression-driven, a change in the finance chart of accounts is handled by the finance-facing configuration rather than by a development cycle. And because the journal is generated from the closed payroll run, the debit and credit totals reconcile to the payroll register by construction rather than by comparison.
The integration questions worth asking in a demo
Can the system post directly to our ERP through its API, and can we see the returned document number stored against the run? How is the cost centre and account mapping maintained, and by whom? What happens to a posting when payroll is reopened and rerun? If a posting partially fails, how is that surfaced and retried? Can the same engine post to two different ERPs for two different entities? And is there a full log of every call, with payloads, retained for audit?
These are answerable in fifteen minutes by a vendor who has done this. They take a follow-up meeting from one who has not.
Integration is an operating model, not a project
The final point is organisational. A properly integrated HR and finance stack changes who does what: HR owns the calculation and the classification rules, finance owns the chart of accounts and the posting policy, and neither owns a monthly reconciliation spreadsheet. That reallocation is usually worth more than the technical saving, because the spreadsheet was never really a spreadsheet — it was a control that depended entirely on one person remembering how it worked.
- What data needs to move between an HR system and an ERP?
- HR sends the payroll journal split by cost dimensions and accounts, leave and end-of-service provisions, the bank transfer file, third-party postings and headcount or cost data. The ERP supplies the chart of accounts, cost centres, project and work-order codes and, where relevant, vendor records and the approved budget.
- What are the main patterns for integrating HR with an ERP?
- There are four, in order of preference: API integration with the ERP's published interfaces, a governed file exchange in the expected import format, a middleware or integration platform in between, and direct database writes into ERP tables, which is almost always the wrong choice.
- Why avoid writing payroll data directly into ERP database tables?
- It is quick to build, but it bypasses ERP validation, breaks on upgrade and creates postings that the ERP's own consistency checks never saw. It also cannot answer audit questions. Replacing an existing integration of this kind is usually the highest-value item in a modernisation plan.
- Why is API integration easier to audit?
- Each posting has a request, a response, a document reference and a timestamp, and the payroll run keeps the link. You can therefore show that a journal line matches a payroll result and was posted once. When payroll is reopened and rerun, the integration can also reverse and repost.
