Posting Payroll to Accounting

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

When the payroll run has paid an employee on paper, the company’s books still know nothing about it. Somebody has to book the salary as an expense, the deductions as amounts owed to the tax office and the social institutions, and the net pay as an amount owed to the employee until the bank transfer happens. SAP does this in a separate step, Posting to Accounting, that reads the stored payroll results and hands the numbers to Finance. This page explains how that step works, follows the March 2026 pay of Ana Torres from her payslip to a balanced accounting document, and shows what happens when pay is corrected afterwards. After reading it you can name the objects of the step (wage type, symbolic account, posting run, posting document), explain why SAP uses two stages to find a G/L account, and read the status of a posting run. It is written against SAP S/4HANA 2025 FPS02 on premise and Private Edition, where the payroll functions come from SAP HCM for SAP S/4HANA (H4S4), a separately licensed component. For SAP S/4HANA Cloud Public Edition, SAP documents a separate integration from SAP ERP HCM Payroll to Finance; the last section says what its page states. SAP SuccessFactors is not covered.

Before you read

Key terms

  • Posting to Accounting: the SAP component (PY-XX-DT) that evaluates payroll results and posts them to Finance and Controlling; it is the interface between Payroll and Accounting.

  • Wage type: one line of a payslip or payroll result, with an amount, a number or a rate.

  • Symbolic account: a Customizing object between a wage type and a G/L account, so that payroll and accounting settings can change independently.

  • Employee grouping for account determination: a value derived from the employee (for example hourly or salaried) that lets one symbolic account lead to different G/L accounts.

  • Posting run: the central object of the step, with a unique number, that groups the posting documents created from the payroll results and carries a status.

  • Posting document: a summarized document created by a posting run, from which Accounting creates its own accounting documents.

  • Recalculation difference: the amount by which retroactive accounting changes a period that was already paid.

  • Master cost center: the cost center stored with the employee’s organizational assignment, used when no other cost assignment applies.

The example used on this page

Every page of this section uses one made-up business, Example Trading Co. (company code EX01, currency EUR). All keys, names, amounts and dates are invented example values for this site, not values delivered by SAP.

  • 00001234 Ana Torres, Sales Manager, employee subgroup AA "Salaried staff", personnel subarea 0001 "Head office", payroll area E1 "Monthly EX01", basic pay 4,000.00 EUR a month.

  • Ana’s March 2026 payslip, as on the page HR and Payroll Basics: gross 4,000.00, employee social contributions 20.00 percent (800.00), income tax 15.00 percent of 3,200.00 (480.00), net 2,720.00, employer contributions 21.00 percent of gross (840.00). These are generic flat example rates and are not any country’s rules.

  • This page extends the example in two ways: it needs a cost center and G/L accounts to post to. The cost center is EX-ADM, the one that the Finance pages use for the controlling area EX00, and the account names (Salaries, Employer social contributions, and so on) are made up and carry no account numbers. They are not accounts of the chart of accounts on the Finance pages.

  • The arithmetic of every table was checked by hand and with a small script. Nothing was run in an SAP system.

What Posting to Accounting does

SAP’s documentation describes Posting to Accounting as the component that evaluates payroll results for posting, creates summarized documents and performs the postings in the accounting components. It supplies General Ledger, Accounts Payable and Accounts Receivable accounting, the Special Purpose Ledger, Funds Management and Cost Accounting, and it can supply Personnel Cost Planning. In Cost Accounting the usual account assignment objects are the cost center and the order; others, such as a work breakdown structure element, are possible.

The technical sequence has five steps, as the documentation describes it:

  1. Each start creates a posting run with a unique number. The posting run shows at any time which information was processed and in which status the run is.

  2. The system evaluates the payroll results for posting-relevant information. Results used in a live run are flagged, so they cannot be evaluated twice.

  3. The system finds the symbolic account of each wage type to be posted from the settings in Customizing, derives the employee grouping from characteristics of the employee, and derives the G/L account from the combination of both. It also determines the account assignment objects.

  4. It creates summarized posting documents that contain only what Accounting needs.

  5. It posts the posting documents to the accounting components through the Accounting interface.

Summarized means that one document line can carry the amounts of many employees. Authorized users can trace a line back to the payroll result of a personnel number, which matters for audits.

From a wage type to a G/L account to the Universal Journal

Payroll does not know any G/L account. A payroll result is a list of wage types, and the posting step must turn each relevant one into an account. SAP does this in two stages, and the documentation gives the reason. The wage type is assigned to a symbolic account, and the symbolic account is assigned to the Finance account. If Accounting reorganizes its accounts, the assignment of wage types to symbolic accounts often stays as it is; if payroll changes technically, the account settings in Accounting do not necessarily change. The symbolic account is the interface between the two.

flowchart LR WT["Wage type
in the payroll result"] --> SA["Symbolic account
(Customizing object)"] EG["Employee grouping for
account determination
(feature PPMOD)"] --> GL SA --> GL["G/L account
(or customer or vendor account)"] GL --> PD["Posting document
summarized, in a posting run"] PD --> AD["Accounting document
in Financial Accounting"] AD --> UJ["Universal Journal
table ACDOCA"] CC["Cost center from the
payroll result tables"] --> PD

The diagram shows the chain. The last arrow is not stated on the Posting to Accounting pages: it is the general rule of SAP S/4HANA that a posted journal entry is stored in the Universal Journal, which the page The Universal Journal (ACDOCA) explains.

The rules behind the diagram, all from SAP’s documentation of account determination and symbolic accounts:

  • A wage type can be assigned to several symbolic accounts. This is usual for the wage types of the employer’s contribution to social insurance, which are posted as an expense and as an amount owed.

  • Several symbolic accounts can lead to the same G/L account. They do not need to map one to one.

  • Each symbolic account has an account assignment type, which decides whether the posting goes to a G/L account, a customer account or a vendor account. This is set in Customizing under Reporting for Posting Payroll Results to Accounting, Activities in the HR System, Employee Grouping and Symbolic Accounts, Define Symbolic Accounts.

  • The employee grouping for account determination (feature PPMOD) lets one symbolic account lead to different G/L accounts. SAP’s example: the G/L account Wages for the symbolic account Wages and Salaries when the employee is an industrial worker, and the account Salaries for a salaried employee.

  • The posting characteristics of a wage type (which symbolic accounts it uses and whether it is posted at all) are set under Activities in the HR System, Maintain Wage Types, Define Posting Characteristics of Wage Types. SAP’s page on complete posting says that a complete posting is only guaranteed by selecting the wage types to be posted correctly there.

  • The report Display Assignment of Wage Types to G/L Accounts (RPDKON00) shows which wage type is posted to which account.

  • If a symbolic account needs a fixed account assignment for Funds Management or Grants Management with the New General Ledger, the feature PPNGL is read for a return value.

Which cost center gets the cost

For an expense wage type, the documentation describes an evaluation of the payroll result tables in a fixed order. The Results Table (RT) holds the wage types with their amounts. The table Work Center/Basic Pay (WPBP) holds the partial periods, each with company code and master cost center. The table Cost Distribution (C0) holds the percentage cost distribution from Organizational Management and the Cost Distribution infotype (0027). The table Cost Distribution from Different Infotypes (C1) holds cost assignments entered in infotypes such as Additional Payments (0015) or Overtime (2005). For each expense wage type the system:

  1. uses the cost assignment from table C1 if the wage type references one (unless its posting characteristics say to ignore it);

  2. otherwise finds the partial period in WPBP, and checks whether table C0 has a distribution for it;

  3. posts by percentage to the cost distribution, with any remainder on the master cost center, or posts everything to the master cost center when there is no distribution.

A wage type that is not posted to an expense account, such as the net payment, is posted by company code (and business area, if used) of the partial period only. When the master cost center belongs to another company code or cannot be posted to, the system posts to a substitute cost center and logs the substitution in the document, which Accounting must then review. Some costs are posted to a fixed cost center or order instead, so that Controlling receives them summarized and can reassign them later; SAP names the employer’s social insurance contribution as one such case.

In the example, Ana has no cost distribution and no special assignment, so every expense wage type goes to her master cost center EX-ADM. This is an invented assignment for the example.

One posting: Ana’s March 2026 payslip

SAP’s own example posts a salary of 2,000.00 as a debit to a Salaries account and a credit to Wages and Salaries Payable, where the standard pay wage type is the expense and the bank transfer wage type is the payable, with the master cost center as additional account assignment. The documentation’s wage types for it are the model wage type MA10 (Standard Pay) and the technical wage type /559 (Bank Transfer). Ana’s payslip needs a few more lines. The table shows how they could be posted. The wage types for the deductions and for the employer contribution are not named here because they depend on the company’s Customizing; the lines are described by their meaning.

Payslip line G/L account (invented) Cost center Debit EUR Credit EUR

Basic pay (gross)

Salaries

EX-ADM

4,000.00

Employer social contributions (expense)

Employer social contributions

EX-ADM

840.00

Net pay to the employee (bank transfer, /559)

Wages and Salaries Payable

2,720.00

Employee social contributions withheld, 800.00, plus employer contributions owed, 840.00

Social contributions payable

1,640.00

Income tax withheld

Income tax payable

480.00

Total

4,840.00

4,840.00

Check by hand: the debits are 4,000.00 + 840.00 = 4,840.00, which is the total employer cost of the payslip page. The credits are 2,720.00 + 1,640.00 + 480.00 = 4,840.00. Debits equal credits, as they must in every accounting document. Each credit line is an amount that the company owes to somebody: the employee, the social institutions and the tax office. The documentation also says the system checks that the balance of the lines of each payroll result is zero before it creates documents.

The payment itself is not part of Posting to Accounting. SAP’s example shows it as a second posting in the payment transaction: when the transfer is made, Wages and Salaries Payable is debited with 2,720.00 and the bank account is credited with 2,720.00, so that the payable is cleared. Controlling interprets the expense lines as primary costs on EX-ADM (4,000.00 and 840.00 here), in the same way as SAP’s example describes it for its 2,000.00 on its cost center.

Posting run: the steps and the statuses

The documentation recommends this order: run payroll, simulate the posting, create the live posting run, check it, check the posting documents, release them, post them, then check the accounting documents and the completeness of the postings.

  • Simulate. A test run (value T in the Type of Document Creation field) creates no documents; it selects the results, finds the symbolic accounts and checks that each payroll result balances. A simulation run (value S) creates a posting run marked as a simulation, with posting documents that get the same checks as live ones and are never posted. Simulating does not lock the payroll results, so it can be repeated. SAP recommends simulating before and after finishing payroll.

  • Create. The live run (value P) is started from the SAP menu under Human Resources, Payroll, Subsequent Activities, Per payroll period, Reporting, Posting to Accounting, Create Posting Run. Payroll must be finished for the payroll areas involved. The step locks the selected payroll results, so neither another posting run nor the payroll driver can process them, and it creates an index so that a summarized line can be traced back. The posting date comes from the payroll period unless the posting date is entered or taken from the payment date.

  • Check. In the posting run overview a run that worked has the status Documents created. Documents incorrect, Deleted (all personnel numbers rejected) or a run stuck in Selection is running mean the error is fixed and a new run is created.

  • Release. Posting documents are released first. The documentation says a release is not meant to be undone; after an error, delete the posting run and create a new one. The authorization to release can be given per company code, while the authorization to post is separate, because all documents of a run are posted together.

  • Post. With the status All documents released the run can be posted, immediately or as a job. If HR and Accounting are in the same system, the run gets the status Documents posted. If they are in separate systems, IDocs are created through ALE, the run gets Documents Transferred, and the documents are posted when the IDocs are processed in the target system. A failure gives Document Transfer Has Failed.

stateDiagram-v2 [*] --> Created: Create posting run Created: Documents created Created --> Released: Release documents Released: All documents released Created --> Incorrect: Error in documents Incorrect: Documents incorrect Incorrect --> [*]: Delete run, fix error, start again Released --> Posted: Post, same system Posted: Documents posted Released --> Transferred: Post, separate systems (IDocs) Transferred: Documents Transferred Released --> Failed: Transfer fails Failed: Document Transfer Has Failed Posted --> [*] Transferred --> [*]

The diagram simplifies the statuses SAP’s pages name for a live run: it leaves out Deleted, the statuses of a run that is still being created, the reversal and the archiving statuses.

Three more tools are named in the documentation. Transaction PCP0 (Display Posting Runs) shows the runs, and its Goto menu offers the completeness check and the transfer check. The reports RPCIPC00 (Completeness Check) and RPCIPC00_PNP (Completeness Check on the Employee Level) find payroll results that were never evaluated for posting. The program RPCIP_TRANSFER_CHECK (Technical Document Tracing of HR Posting Transfer) checks that posted documents were processed further. The reports RPCIPE00 and RPCIPE01 are named for the creation of posting runs; the second also appears with its own page about parallel processing of run creation.

Source: Performing Postings, Simulating a Posting Run, Creating a Posting Run, Checking a Posting Run, Releasing Posting Documents, Posting Posting Documents, Checking the Completeness of Postings and Technical Document Tracing (all SAP Help Portal, SAP S/4HANA 2025 FPS02). Steps in the SAP system require an SAP system; not run here.

Retroactive postings

Suppose that in April 2026 it is agreed that Ana’s basic pay was 4,200.00 from 01.03.2026. Payroll recalculates March and the difference reaches the April result as a recalculation difference. The same example, kept as simple as SAP’s own (only the pay lines, no deductions), shows what Accounting sees.

SAP describes the mechanism as follows. The payment amount of the old period is not changed. The system compares the new payment amount with the old one and stores the difference in wage type /551 (Recalculation difference) of the retroactive result: negative if the employee gets an arrears payment, positive if the employee must repay. It carries the amount with the opposite sign to the current period, in wage type /552 (Subs.clearing/prev.month). The two always have opposite signs. In formula form, with the old and new monthly pay of the earlier period:

Wage type March result (old) March recalculated (new) April result

M020 Monthly salary

4,000.00

4,200.00

4,200.00

/551 Recalculation difference

-200.00

/552 Subs.clearing/prev.month

200.00

/559 Bank transfer

4,000.00

4,000.00 (unchanged)

4,400.00

The April bank transfer is 4,200.00 plus the arrears 200.00 = 4,400.00. When April is posted, the posting run of the old March result is reversed (the old values are read from that run, not recalculated from Customizing) and the new March result is posted, all with the posting date of the current period. Net effect in April: the expense account is debited with -4,000.00 + 4,200.00 + 4,200.00 = 4,400.00 and the payable account credited with 4,400.00. The wage types /551 and /552 net to zero and create no line. The documentation says they must still be coded as relevant for posting, so that the balance of every payroll result stays zero, and recommends a separate clearing account for recalculation differences that is used for nothing else. A line on that account appears, for example, when several company codes are involved. Wage type /560 (Payment amount) is ignored by the posting; only /559 counts.

The documentation also warns about the New General Ledger: if posting to the master account assignment or distribution of liabilities according to expenses is active, /551 and /552 must be distributed in exactly the same way as /559.

Public Edition and other landscapes

For SAP S/4HANA Cloud, SAP documents the integration between SAP ERP HCM Payroll and Finance in SAP S/4HANA Cloud, and refers to the Posting to Accounting documentation for the concepts. Its page lists limits: employee-related customer and supplier postings are not supported, public sector objects such as funds are not supported, a payroll posting document can have at most 10,000 line items, and only some countries are supported, listed in an SAP Note that needs an SAP login and was not opened for this page. The cost centers must be set up before the payroll posting settings are made. The payroll system and the accounting system can also be different systems on premise, which is the ALE and IDoc path of the posting step above. Posting from SAP SuccessFactors Employee Central Payroll is not covered by these pages.

What older books show, and what has changed

The book SAP ERP HCM: Technical Principles and Programming, 1st edition (2013), by Dirk Liepold and Steve Ritter, mentions the posting of the payroll expense to the chart of accounts as one of the activities that complete a payroll cycle, and shows how HCM and Financial Accounting running in separate systems exchange payroll postings through ALE, with a distribution model, partner profiles and a transactional RFC port. The book does not walk through the symbolic account or the posting run statuses. What changed since 2013 is the packaging, not the idea of the posting step: in SAP S/4HANA the payroll functions are part of SAP HCM for SAP S/4HANA (H4S4), which needs a separate license and is active by default from SAP S/4HANA 2025, the accounting documents land in the Universal Journal instead of separate FI and CO tables, and SAP documents a payroll integration to Finance in SAP S/4HANA Cloud. The ALE settings in the book (menu paths, message types) are from the ERP 6.0 era, so check them in the current Customizing before using them.

Summary

  • Posting to Accounting reads stored payroll results and creates summarized posting documents that Financial Accounting and Controlling turn into accounting documents.

  • A wage type reaches a G/L account in two stages: wage type to symbolic account, then symbolic account (with the employee grouping for account determination) to the account.

  • Cost assignment comes from the payroll result tables: a cost assignment from an infotype first, then the cost distribution, then the master cost center.

  • Ana’s March 2026 pay posts as debits of 4,840.00 (salaries 4,000.00, employer contributions 840.00) and credits of 4,840.00 (net pay 2,720.00, social contributions 1,640.00, income tax 480.00).

  • A posting run has a status, locks the payroll results it used, and is created, checked, released and posted; simulations are safe to repeat.

  • Retroactive changes reverse the old posting and post the new result in the current period; the recalculation difference wage types net to zero.