HR and Payroll Basics
|
This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production. |
Every company that employs people has to answer the same questions: who works here, what is each person’s job, when do they work, how much do they earn, and what is left of that after taxes and contributions? Human resources (HR) is the part of the business that keeps these answers, and payroll is the part that turns them into a payment and a payslip every month. This page teaches those ideas from zero, in the order a person meets them, from the day someone is hired to the day they retire, and shows one worked payslip with real numbers. It also says, at each step, how SAP stores the idea, so that the later pages of this section make sense. It is written against SAP S/4HANA 2025 FPS02 on premise and Private Edition, where the classic SAP HR functions continue as SAP HCM for SAP S/4HANA (H4S4), which needs a separate license. The ideas themselves are the same in every HR system, including the cloud HR offering SuccessFactors.
Before you read
-
What Is SAP?: what an SAP system is and what its modules do.
-
Organizational Structures: the company code and the other units that the HR units on this page refer to.
Key terms
-
Employee lifecycle: the stages of a person’s employment, from hiring to leaving or retirement.
-
Personnel number: the number under which the system keeps one employee’s data.
-
Infotype: one group of related data about an employee, such as the organizational assignment, kept as records that can be added, changed or delimited.
-
Personnel action: one business event, such as hiring or leaving, that changes a whole series of infotypes at once.
-
Organizational unit: a department or project group of the company.
-
Job: a general description of a kind of work, such as clerk.
-
Position: one seat that one person can fill, such as the sales manager of the sales department.
-
Gross pay: the pay agreed with the employee before anything is deducted.
-
Net pay: the amount the employee actually receives after deductions.
-
Payroll area: a group of employees for whom payroll is run together, at the same time.
-
Payroll period: the stretch of time one payroll run pays for, for example one calendar month.
-
Payroll run: the program run that calculates pay for all employees of a payroll area for one period.
-
Retroactive accounting: recalculating earlier periods when data that affects them changed later.
The example used on this page
This site uses one fictitious business to make every idea concrete: Example Trading Co. (company code EX01, currency EUR, the same company as in the finance pages). It has three employees. Ana Torres (personnel number 00001234) is the Sales Manager, hired on 01.03.2024, with a monthly basic pay of 4,000.00 EUR. Ben Okoye (00001235) is a Sales Clerk, hired on 01.09.2024, with 2,400.00 EUR a month. Chloe Martin (00001236) is a Warehouse Clerk, hired on 15.01.2025, paid 14.00 EUR per hour. Dates are written DD.MM.YYYY, the way SAP displays them. Every code, number and rate in this example is an invented example value for this site, chosen to keep the arithmetic readable. None of them is delivered by SAP, and the rates are not the rules of any country.
The employee lifecycle
Every employee goes through the same stages. A company first recruits and hires a person, then records the person’s data, assigns the person to a place in the organization, lets the person work and records working time and absences, pays the person every period, handles changes such as a raise or a transfer, and finally lets the person leave or retire. The diagram shows the stages and the loop that repeats every month.
personnel action Hiring"] --> B["Record master data
infotypes of the employee"] B --> C["Assign to the organization
organizational unit, job, position"] C --> D["Work
planned working time, absences, attendances"] D --> E["Pay
payroll run for the payroll period"] E --> D D --> F["Change
raise, transfer, promotion"] F --> D D --> G["Leave or retire
personnel action Leaving or Early retirement/retirement"] G --> H["Final payroll run
and records kept"]
SAP calls each business event in this lifecycle a personnel action. SAP’s documentation defines a personnel action as a series of infotypes that are added, changed, completely or partially deleted, or delimited for the reason specified, for example hiring, change of cost center and leaving. The standard system includes the personnel actions Hiring, Organizational Reassignment (for example for an employee who is promoted or transferred), Early retirement/retirement, Leaving and Reentry into Company. For example, the Hiring action presents all the infotypes the system needs to administer the employee for payroll, time management and other personnel processes, so that nothing needed later is forgotten.
In the example, hiring Ana on 01.03.2024 is one personnel action. After it, the system holds her data, her place in the company and what payroll needs. Her promotion or a later raise would be another action or a change to one infotype, and her retirement would end the story with the Early retirement/retirement or Leaving action.
The employee’s file: personnel numbers and infotypes
Think of an employee’s file in a filing cabinet with one tab for each kind of information: personal details, address, bank account, organizational assignment, pay. SAP keeps the same file, but electronically: the file belongs to one personnel number, and each tab is an infotype. This is only an analogy; the exact fields and numbers of each infotype are described on the later pages of this section. Two infotypes appear in SAP’s documentation of the organizational structure and are worth knowing from the start: Actions (0000), which records the personnel actions that were run, and Organizational Assignment (0001), which holds where the employee belongs in the company.
Infotype records are not simply overwritten. SAP’s own description of a personnel action says that infotypes are added, changed, deleted or delimited, so a record can be ended instead of erased. Payroll depends on this when it later recalculates a past month (see retroactive accounting below).
Organizational structure: who works where
A company needs two different pictures of its structure. The first picture is the organization: which departments exist and which seats must be filled. The second picture is the people: who sits in which seat. SAP’s documentation uses three words for the first picture. An organizational unit is a department or project group, a job is a general classification of task areas (a standard description of an activity that a person can perform), and a position is an individual employee assignment, a grouping of work that can be performed by one person. A position belongs to an organizational unit and is described by a job. Many positions can share one job, which is why "clerk" is a job and "Sales Clerk" is a position.
Example Trading Co. has three organizational units, two jobs and three positions. The invented keys are listed in the table.
| Kind | Key | Name and relationships |
|---|---|---|
Organizational unit |
|
Example Trading Co. (top of the structure) |
Organizational unit |
|
Sales |
Organizational unit |
|
Warehouse |
Job |
|
Manager |
Job |
|
Clerk |
Position |
|
Sales Manager: job Manager, in Sales, the head of Sales. Held by Ana |
Position |
|
Sales Clerk: job Clerk, in Sales. Held by Ben |
Position |
|
Warehouse Clerk: job Clerk, in Warehouse. Held by Chloe |
Besides this organizational picture, each employee is classified for administration and payroll by a few more groupings. In the organizational assignment, SAP’s documentation names the company code, personnel area, personnel subarea, cost center, controlling area, business area, employee group and employee subgroup, together with the job, organizational unit and position. In this example, the personnel area and personnel subarea divide the company into sites, the employee group says what kind of employee this is (active), and the employee subgroup refines it (salaried or hourly staff). Example Trading Co. uses personnel area EX01 with the subareas 0001 (Head office) and 0002 (Warehouse), employee group 1 (Active), and the employee subgroups AA (Salaried staff) and AB (Hourly staff). Ana and Ben are in AA and 0001, and Chloe is in AB and 0002.
When both Personnel Administration and Organizational Management are used together (integrated), the fields personnel area, employee group and employee subgroup of the Actions infotype (0000) can be filled automatically from the position when a new employee is hired. So choosing the position Sales Manager for Ana can bring along everything the position stands for, which keeps the two pictures consistent. The structures are described in detail on the later pages Enterprise and Personnel Structure and Organizational Management.
The company code EX01 is the same legal company as in Organizational Structures. Payroll costs end up in accounting through it: after a payroll run, SAP’s documentation says, you can transfer the payroll results to Financial Accounting.
Working time and absences
Pay depends on time. A person employed for a monthly salary is paid for the agreed working time whether a month has 20 or 23 working days, while an hourly employee is paid for the hours worked. So HR must know the planned working time, the actual working time and the absences.
Planned working time. Ana and Ben work 40 hours a week, Monday to Friday, from 08:00 to 16:30 with an unpaid break of 30 minutes. That is 8.5 hours present, minus 0.5 hours of break, which is 8 paid hours a day and 5 times 8 equals 40 hours a week. Chloe works shifts with the same 8 paid hours. SAP describes the planned time as a work schedule. SAP’s work schedule rule says which period work schedule applies when and on which day of the period, and the period work schedule holds the pattern of daily work schedules. As the documentation puts it, rules can describe flextime, early, late or night shifts and flexible working time. A shift worker such as Chloe therefore needs a work schedule rule with a rotating pattern, while Ana and Ben share a simple fixed one.
Actual working time. If employees clock in and out, a time recording system sends the clock events to SAP. SAP’s Time Evaluation component valuates the working times: it calculates planned times and overtime, administers time accounts, forms wage types and updates time quotas. The documentation recommends implementing it if you use time recording systems for actual times, and says it is optional with other ways of recording time. Wage types are the pay components, such as basic pay or overtime pay, that payroll later adds up. In the example, Ana’s pay does not depend on hours worked, so time evaluation matters mainly for Chloe, whose pay does.
Absences and quotas. An absence is a time when an employee has not worked, with prior notification: for example on leave or unable to work due to illness. SAP’s absence reports show these times, summarized by criteria, in a calendar view, in a multiple-employee view or as a graphic, and can list who is at work or absent at a given time. Allowances such as annual leave are kept as absence quotas, and a recorded absence is deducted from the matching quota. In the example, Ana and Ben have an annual vacation entitlement of 30 days and Chloe has 28 days (example values). If Ana takes 5 days of vacation in 2026 and nothing was used before, her remaining entitlement is 30 - 5 = 25 days, ignoring carry-over rules. Paid vacation does not reduce her monthly basic pay.
Sources: Absence (SAP Help Portal, SAP S/4HANA 2025 FPS02), Deducting Absence Quotas for Concurrent Employment (SAP Help Portal, SAP S/4HANA 2025 FPS02)
Hourly pay in numbers. March 2026 starts on a Sunday and has 22 weekdays (Monday to Friday). If Chloe worked every one of them, 8 paid hours each and ignoring public holidays, she would earn 22 times 8 times 14.00 EUR:
In her first month, January 2025, she joined on 15.01.2025, a Wednesday. From that day to 31.01.2025 there are 13 weekdays, so 13 times 8 equals 104 hours, and 104 times 14.00 equals 1,456.00 EUR. Paying only for part of a period is called a partial period, and the payroll run takes care of it by a factor it calculates (SAP’s description of the payroll process mentions the partial period factors). A monthly salary such as Ana’s is reduced in the same way when a person joins or leaves in the middle of a month.
Gross to net: one worked payslip
A payslip answers one question: how does the agreed pay become the amount that reaches the bank account? The agreed pay is the gross pay. The deductions are taken from it, and what remains is the net pay. In many countries two kinds of deductions exist. Statutory deductions are required by law, such as employee social security contributions and income tax. Voluntary deductions are optional and agreed with the employee, such as a contribution to a company pension plan or a charity. Employers also pay their own contributions on top of the gross pay. The employee never receives these, but they are part of what the employee costs the company.
Which deductions exist, and at which rates, is different in every country. SAP therefore does not have one payroll for the world: its documentation describes an international payroll driver that was modified for each country, with country-specific payroll drivers that take the statutory and administrative regulations of a country into account. To keep the arithmetic readable, this page uses generic flat example rates that are not any country’s rules.
The payslip below is for Ana, payroll period March 2026 (01.03.2026 to 31.03.2026). The social contributions are 20.00 percent of the gross pay, the income tax is 15.00 percent of what remains after the social contributions, and the employer pays 21.00 percent of the gross pay on top. First the numbers:
-
Gross pay: 4,000.00 EUR.
-
Employee social contributions: 20 percent of 4,000.00 is 800.00 EUR.
-
Taxable amount: 4,000.00 minus 800.00 is 3,200.00 EUR.
-
Income tax: 15 percent of 3,200.00 is 480.00 EUR.
-
Net pay: 4,000.00 minus 800.00 minus 480.00 is 2,720.00 EUR.
-
Employer contributions: 21 percent of 4,000.00 is 840.00 EUR, so the total employer cost is 4,840.00 EUR.
| Line | Basis | Amount EUR |
|---|---|---|
Basic pay (gross) |
4,000.00 |
|
Employee social contributions |
20.00% of 4,000.00 |
-800.00 |
Income tax |
15.00% of 3,200.00 |
-480.00 |
Net pay |
2,720.00 |
|
Employer contributions (not paid to the employee) |
21.00% of 4,000.00 |
840.00 |
Total employer cost |
4,000.00 + 840.00 |
4,840.00 |
The same calculation as a formula, with the gross pay , the social contribution rate , the tax rate and the employer rate :
A quick check shows that nothing is lost: of the total employer cost of 4,840.00 EUR, 800.00 + 480.00 + 840.00 = 2,120.00 EUR goes to social institutions and the tax office (in this made-up setting), and 4,840.00 - 2,120.00 = 2,720.00 EUR is Ana’s net pay. In SAP, each line of this payslip is a wage type, and the payroll run calculates them in the order that a payroll schema prescribes. The payslip itself is the remuneration statement, which SAP’s Payroll Basics documentation lists with the transaction PC00_M99_CEDT (Remuneration Statements), and PC_PAYRESULT (Display Payroll Results) shows the stored result.
Payroll periods, payroll areas and the payroll run
Payroll is not calculated one employee at a time whenever someone asks. It is run for a group of employees, for a period, on a schedule. The three ideas fit together as follows.
A payroll period is the stretch of time one run pays for. For Example Trading Co. it is one calendar month, from the first to the last day of the month, so the March 2026 payslip above covers 01.03.2026 to 31.03.2026. A payroll area is a group of employees for whom payroll is run together and at the same time. SAP’s documentation says which payroll area an employee belongs to depends on the organizational assignment, and that you need different payroll areas when the periodicity differs (for example weekly for hourly-paid employees and monthly for salaried employees), when the payroll period differs, when the payment date differs, or when the retroactive accounting limit differs. It recommends using as few payroll areas as possible. Example Trading Co. therefore needs only one payroll area, E1 (Monthly EX01, an invented key), for Ana, Ben and Chloe, as long as Chloe is also paid monthly. If the company paid its hourly staff weekly, it would add a second payroll area for them.
In the documentation’s description of the payroll area, the payroll area is entered on the payroll driver selection screen, where it determines the exact payroll period and selects the personnel numbers that are processed together. Every payroll area also needs its own payroll control record, and you must not change the period parameters or the date modifier of a payroll area for which payroll was already run.
The payroll run itself is performed by the payroll driver, a program (for the international driver, transaction PC00_M99_CALC, Payroll Driver (International)), which calls a payroll schema, a sequence of functions. SAP’s documentation describes the flow in these steps, which this page puts in plain words:
-
The system reads the master data that is relevant for payroll.
-
It reads the last payroll result of the employee.
-
It calculates the gross wage, taking the shift schedule and other data such as shift change compensation and valuation bases into account.
-
It calculates partial period factors, lump sums and salary elements and cumulates the gross results.
-
It calculates the net remuneration, and runs retroactive accounting if certain master data was changed in earlier payroll periods.
After the payroll run, you can transfer the payroll results to Financial Accounting, or create evaluations, lists and statistics. For Ana’s March 2026 run, the gross line 4,000.00 comes from her basic pay in her master data, and the net line 2,720.00 is the last result of the run.
Why periods can be recalculated. Suppose Ana is promoted with effect from 01.03.2026 but the change is entered only in April 2026, after the March run has finished. Her March pay was calculated with the old data. The April run notices that data affecting an earlier period changed and recalculates March, and the difference is paid with April. This is retroactive accounting. SAP’s documentation illustrates it with the idea of results stored under the period they are for and the period in which they were calculated: a run in February 1998 can recalculate January, and the database then holds both the January result calculated in January and the one calculated in February. The limit up to which a payroll area may be recalculated is one of the properties of the payroll area, as listed above.
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, describes HR in SAP ERP 6.0, where Human Capital Management (HCM) is a standard part of the ERP system. The concepts on this page, personnel numbers, infotypes such as Actions (0000), personnel actions, the payroll area and the payroll driver, are the same in that book and in the current documentation. What changed since 2013 is the packaging and the product landscape. In SAP S/4HANA the classic functions are offered as SAP HCM for SAP S/4HANA (H4S4), which needs a separate license. Since SAP S/4HANA 2025, the business function for H4S4 is activated by default, so running SAP HCM in compatibility mode is no longer possible. SAP’s cloud HR products, SuccessFactors, have also become an option next to it, a topic of the page SAP HCM, H4S4 and SuccessFactors. The book (1st edition) does not cover H4S4 or the current release, so read it for the concepts and check release-specific details in the current documentation.
Summary
-
The employee lifecycle runs from hire through change to leaving or retirement, and each stage is a personnel action in SAP that updates a series of infotypes.
-
An employee is identified by a personnel number, and the employee’s data is kept in infotypes, for example Actions (0000) and Organizational Assignment (0001).
-
The organization is described by organizational units, jobs and positions, and each employee is classified by personnel area, personnel subarea, employee group and employee subgroup.
-
Working time comes from the work schedule, from time evaluation for actual times, and from absences deducted from absence quotas.
-
The payslip turns gross pay into net pay: for Ana in March 2026 the gross pay of 4,000.00 EUR becomes a net pay of 2,720.00 EUR, and the employer’s cost is 4,840.00 EUR, using flat example rates.
-
A payroll run calculates pay for one payroll area and one payroll period, and retroactive accounting recalculates earlier periods whose data changed.
-
Payroll rules are country specific, and from SAP S/4HANA 2025 the classic HR functions are SAP HCM for SAP S/4HANA (H4S4), a separately licensed product.
Try it
To do this by hand, follow the guide Model Employee Records with Validity Periods: it stores employee records with validity periods and time constraints.