How to Execute Payroll in SAP

โšก Smart Summary

Executing Payroll in SAP calculates employee pay for a period using the country payroll driver PC00_MXX_CALC. This resource explains what payroll execution involves, its prerequisites, the step-by-step foreground run, and how to schedule a background run for large employee populations.

  • ๐Ÿ’ต Purpose: Payroll execution calculates each employee’s gross and net pay for the payroll period.
  • ๐Ÿ”‘ Transaction: A live run uses PC00_MXX_CALC, where XX is the country’s Molga.
  • ๐Ÿงช Simulation First: Test mode (PC00_MXX_CALC_SIMU) checks results without updating payroll tables.
  • โœ… Prerequisites: The control record must be released and time evaluation completed before running.
  • ๐ŸŒ™ Background Run: Large employee ranges are scheduled as background jobs and tracked in SM37.

How to Execute Payroll in SAP

In this tutorial, you will learn how to Execute Payroll in SAP.

What is Payroll Execution in SAP?

Payroll execution is the step where SAP actually calculates each employee’s gross and net pay for a payroll period. When you run payroll, the country-specific payroll driver reads the employee’s master data, time results, and wage types, applies the payroll schema, and produces the payroll results stored in cluster RT and related tables.

You start a live run with a transaction of the form PC00_MXX_CALC, where XX is the country’s Molga (Modifier for Legal Authorities). The run can be executed interactively for a small group or scheduled as a background job for large employee populations.

Before the calculated results become final, most teams first run payroll in simulation, or test mode. Simulation performs the same calculation but does not update the payroll tables, which lets administrators find and fix errors safely. Once the results are clean, the live run writes the official payroll results that feed the pay slip, posting to accounting, and bank transfer.

Prerequisites Before Executing Payroll

Payroll only produces correct results when the data feeding it is complete. Before you execute a live run, confirm the following:

  • Control record released: The payroll control record for the payroll area must be set to “Release for Payroll” so the period is open and master data is locked.
  • Time evaluation complete: If employees use time management, time evaluation (PT60) must have run without errors so the time wage types are ready.
  • Master data maintained: Personal, organizational, pay scale, bank, and tax infotypes should be up to date for every employee.
  • Correct schema and Molga: You must know the country’s Molga and select the matching payroll schema.
  • No blocking locks: Check infotype 0003 for employees locked out of payroll and clear them if needed.

With these prerequisites met, run payroll first in simulation to catch errors, then execute the live run. This order prevents rework and keeps the pay cycle on time.

How to Execute Payroll in SAP

Before you proceed ahead executing payroll, make sure that the control record is set to released status in your SAP system.

Step 1) In the SAP command prompt, Enter transaction PC00_MXX_CALC, where XX = Molga of the country for which you want to execute payroll.

Execute Payroll in SAP

Step 2) In the next SAP screen,

  • Enter Payroll Area
  • Select Current Period
  • You can also select another period and run payroll for a period other than the current period.

Execute Payroll in SAP

Step 3) Select the correct Schema.

Execute Payroll in SAP

Step 4) Under Log, Flag the Display log checkbox.

Execute Payroll in SAP

Step 5) Under Remuneration statement parameters:

  • For a SMALL number of employees, tick the “Display Variant Rem. Statement” field and select the appropriate variant.
  • For a LARGE number of employees, tick “No Remuneration Statement” since there is a high chance of an ABAP dump Error.

Execute Payroll in SAP

Step 6) Click Execute and check the Display Log for the results of the Payroll Run. It gives a summary of total number of employees run, employees in error, and employees successful.

If you selected Remuneration statement in the previous selection screen, you can view this by clicking on the Form button.

Execute Payroll in SAP

Step 7) Remuneration Statement.

Execute Payroll in SAP

You can also run payroll in Simulation (Test Mode) using transaction PC00_MXX_CALC_SIMU (XX = Molga). Test Mode simulates the actual payroll run but does not update the payroll tables. It is helpful in determining and correcting errors before you perform an actual (live) payroll run.

How to Execute Payroll in Background

When running payroll for a large employee range it is advisable to process it in the background.

Step 1) In SAP Command Prompt, Enter Transaction PC00_MXX_CALC, where XX = Molga of the country for which you want to run the payroll.

Step 2) Enter the Payroll Area and Payroll Schema.

Execute Payroll in Background

Step 3) In SAP Menu Bar, click:

  1. Program
  2. Execute in Background

Execute Payroll in Background

Step 4) In the SAP -Output Device Dialog Box:

  1. Enter Device as LOCL (local)
  2. Click the check mark

Execute Payroll in Background

Step 5) An Information message stating Format is set to X_65_132 is shown. Click Check Mark to proceed ahead.

Execute Payroll in Background

Step 6) Click Immediate and then click the save button so the job is scheduled instantaneously. Alternatively you can also specify a date and time to run the job.

Execute Payroll in Background

Step 7) Go to Transaction SM37 to check your Job.

Execute Payroll in Background

FAQs

The payroll driver is the ABAP program that runs a country’s payrollโ€”for example, RPCALCU0 for the USA and RPCALCK0 for India. Transactions PC00_MXX_CALC and PC00_MXX_CALC_SIMU internally call this driver with the correct country parameters.

Molga is the two-digit Modifier for Legal Authorities that identifies a country in SAP payrollโ€”for example, 10 for the USA, 40 for India, and 08 for Great Britain. It selects the correct country payroll driver and schema.

A payroll schema is an ordered set of functions and rules that tells the driver how to calculate payโ€”reading master data, importing time results, computing wage types, and posting output. Each country ships a standard schema, such as U000 or K000, that customers copy and adapt.

A simulation run calculates payroll but does not update the payroll tables, so it is safe for testing and error checking. A live run writes the official results that feed pay slips, accounting postings, and bank transfers.

RT (Results Table) stores the wage types and amounts calculated for one payroll period. CRT (Cumulative Results Table) stores year-to-date and other cumulated totals. Both live in the payroll cluster and drive pay slips and tax reporting.

SM37 is the Job Overview transaction. After scheduling payroll as a background job through PC00_MXX_CALC, SM37 lists the job with its statusโ€”released, active, finished, or cancelledโ€”and lets the administrator open the spool log to review results.

AI can validate inputs before a run, explain payroll log errors, forecast total cost, and answer employee pay questions. It supports the administrator, but the actual calculation and posting still run inside SAP payroll.

Yes. AI and Copilot assistants can compare the current run against prior periods, flag unusual pay changes or missing data, and suggest fixes before the live run. Administrators should still confirm each finding and correct it in SAP.

Summarize this post with: