All HR ABAP interview questions in one place, grouped by page. Read the page when an answer needs more depth.
How to practise: cover the answer, say yours out loud in 30–60 seconds, then compare.
01 · HCM Overview & Organizational Management
Q1. What are the main sub-modules of SAP HCM and how are they connected?
OM (structure), PA (employee master data), Time Management and Payroll, plus PD, Recruitment, Training and ESS/MSS. Recruitment and OM feed PA; PA and time data feed payroll; payroll posts to FI/CO.
Q2. What is the difference between enterprise structure and personnel structure?
Enterprise structure = company code, personnel area, personnel subarea (where the employee works, legally and geographically). Personnel structure = employee group, employee subgroup, payroll area (how the employee is employed and paid). Both are stored in IT0001.
Q3. Name the main OM object types.
O org unit, S position, C job, P person, K cost center; also A work center, T task, Q qualification. P and K are external objects whose data lives in PA and CO.
Q4. What is the difference between a job and a position?
A job is a general classification (Manager); a position is a concrete seat in an org unit (Sales manager Pune) that a person holds. One job (C) describes many positions (S) via A007.
Q5. Explain relationships 002, 003, 008 and 012.
002 org unit reports to org unit (hierarchy); 003 position belongs to org unit; 008 person holds position; 012 position manages org unit (chief). Each has an A and a B direction, both stored in HRP1001.
Q6. In which tables is OM data stored?
One table per infotype: HRP1000 objects, HRP1001 relationships, HRP1002 descriptions (texts in HRT1002), HRP1008 account assignment. Key: plan version, object type, object ID, infotype/subtype, status, dates.
Q7. What is an evaluation path?
A named sequence of relationships (OOAW, table T778A) used to walk the structure, e.g. O-S-P to get all positions and persons below an org unit. In ABAP: FM RH_STRUC_GET.
Q8. How do you find an employee's manager?
P B008 S → S A003 O → O B012 S (chief position) → S A008 P. If the employee is the chief, continue with the parent org unit (O A002 O).
Q9. What is a plan version and what is the planning status?
A plan version is a separate copy of the organisation (active one in T77S0 PLOGI PLOGI, usually 01). The status ISTAT is 1 active, 2 planned, 3 submitted, 4 approved, 5 rejected.
Q10. How are OM and PA integrated?
With T77S0 PLOGI ORGA = X, assigning a position in a PA action creates A008 in OM and fills PLANS, ORGEH and STELL in IT0001. RHINTE00 and RHINTE30 repair inconsistencies.
Q11. Which LDB do you use for OM reports?
PCH (event GET objec) for personnel planning data; PNP or PNPCE for employee master data. See page 03.
02 · Infotypes & Personnel Administration
Q1. What is an infotype?
A unit of HR information – a group of related fields with its own screen and table, stored time-dependently with BEGDA and ENDDA, e.g. 0006 Addresses in table PA0006.
Q2. What are the infotype number ranges?
0000–0999 Personnel Administration, 1000–1999 personnel planning (OM/PD), 2000–2999 Time Management, 4000–4999 Recruitment, 9000–9999 customer infotypes.
Q3. What is the difference between Pnnnn, PAnnnn and PSnnnn?
PSnnnn holds the infotype's own fields; PAnnnn is the database table (MANDT + PAKEY + PSHD1 + PSnnnn); Pnnnn is the structure used in programs (PSHDR + PSnnnn).
Q4. Which fields form the key of a PA infotype table?
PERNR, SUBTY, OBJPS, SPRPS, ENDDA, BEGDA, SEQNR (PAKEY), after MANDT.
Q5. What is a subtype? Give examples.
A subdivision of an infotype with the same fields: IT0006 1 permanent / 2 temporary address, IT0021 1 spouse / 2 child, IT0105 0001 SAP user / 0010 e-mail. Table T591A.
Q6. Explain the time constraints.
1 = exactly one record, no gaps, no overlaps (0000, 0001, 0002); 2 = at most one, gaps allowed; 3 = any number, gaps and overlaps (0015, 0022); A = one record 1800–9999, not deletable (0003); B = as A but deletable; T = depends on the subtype (0006); Z = time infotypes with collision checks (2001, 2002).
Q7. What is the lock indicator?
Field SPRPS. A locked record (X) is not used by payroll; it supports double verification. Own SELECTs should filter sprps = space.
Q8. What is a repetitive structure?
Numbered repeating fields in one record, e.g. IT0008 LGA01–LGA40 / BET01–BET40 or IT0041 DAR01–DAR12 / DAT01–DAT12; read with DO … VARYING.
Q9. What is the difference between PA30 and PA40?
PA30 maintains single infotypes; PA40 runs a personnel action – an IT0000 record plus a guided sequence of infotypes (infogroup) for an event such as hiring or leaving.
Q10. How do you find the SAP user of an employee and vice versa?
IT0105 subtype 0001: PA0105-USRID holds the user for a PERNR; select with USRTY = '0001' and USRID = SY-UNAME to get the PERNR of the current user.
Q11. What are features and dynamic actions?
Features (PE03) are decision trees that return defaults such as NUMKR or ABKRS. Dynamic actions (V_T588Z) trigger follow-up steps when an infotype is created, changed or deleted.
Q12. How do you identify active employees?
IT0000 employment status STAT2 = 3 on the key date (0 = withdrawn, 1 = inactive, 2 = retiree).
03 · HR Reporting – Logical Databases, Macros & FMs
Q1. Why do HR reports use logical databases instead of SELECT?
PNP gives the standard HR selection screen, selects the persons, checks HR authorizations (P_ORGIN) and fills all infotype tables per person. The report only processes one person at a time in GET PERNR. A direct SELECT is possible but you must then do the date logic and the authorization check yourself.
Q2. Which HR logical databases do you know, and when do you use each?
PNP for HR master data (PA, time, payroll); PNPCE for the same with concurrent employment – recommended for new reports; PCH for personnel planning objects (OM, PD, training and events); PAP for recruitment.
Q3. What does the INFOTYPES statement do?
INFOTYPES: 0001. creates an internal table P0001 with header line and structure P0001. With an LDB it is filled at GET PERNR with all records of the person. MODE N stops the LDB from reading it.
Q4. What is the difference between RP_PROVIDE_FROM_LAST and RP_PROVIDE_FROM_FRST?
Both copy one record of a Pnnnn table into its header line: LAST the latest, FRST the earliest record valid in the given period (optionally for one subtype). PNP-SW-FOUND = '1' if a record was found, '0' if not.
Q5. Where are the HR macros defined?
Centrally in table TRMAC (hyphen form, e.g. RP-PROVIDE-FROM-LAST, RP-READ-INFOTYPE), so programs can use them without an INCLUDE; display them in SE16. PNP reports also get the underscore form RP_PROVIDE_FROM_LAST from the logical database.
Q6. When do you use PROVIDE instead of the macros?
When you need every change within a period, not just one record. PROVIDE loops over the sub-intervals in which the data of all listed infotype tables is constant and cuts BEGDA / ENDDA to each interval.
Q7. How do you read a repetitive structure such as the wage types of IT0008?
With DO 40 TIMES VARYING lv_lgart FROM p0008-lga01 NEXT p0008-lga02 VARYING lv_betrg FROM p0008-bet01 NEXT p0008-bet02, exiting when the wage type is initial. Modern alternative: ASSIGN COMPONENT with a generated field name.
Q8. What is an HR report category?
A setting in the program attributes of a PNP / PNPCE report that decides which selection fields and period types the standard selection screen shows. SAP delivers many; you can create your own in Customizing.
Q9. What is the difference between PNP and PNPCE?
PNPCE supports concurrent employment (one person with several personnel assignments). It uses NODES peras and GET peras instead of TABLES pernr and GET pernr, and has its own report categories.
Q10. How do you get all employees of an organizational unit?
Call RH_STRUC_GET with object type O, the org unit ID and evaluation path O-S-P, then keep the result lines with OTYPE = 'P'. In a PCH report the evaluation path on the selection screen does the same.
Q11. What must you take care of when you SELECT directly from PA0001?
Date logic (begda <= end AND endda >= start), locked records (SPRPS), and the missing authorization check – call HR_CHECK_AUTHORITY_INFTY before you output the data.
Q12. Which FMs read HR data and which one writes it?
Read: HR_READ_INFOTYPE, HR_READ_SUBTYPE (PA), RH_READ_INFTY (PD / OM), RH_STRUC_GET (structures). Write: HR_INFOTYPE_OPERATION, with the employee locked by BAPI_EMPLOYEE_ENQUEUE (page 04).
04 · Infotype Development, Enhancements & Authorizations
Q1. How do you create a custom infotype? Which objects are generated?
In PM01: create the PS structure PS9nnn with the fields, generate the objects, maintain the infotype characteristics (V_T582A, time constraint, screens), check the technical attributes (T777D) and arrange the screen layout. Generated: P9nnn, PA9nnn, module pool MP9nnn00 with single screen 2000 and list screen 3000.
Q2. What is the difference between PS9nnn, P9nnn and PA9nnn?
PS9nnn holds only the data fields. P9nnn is the program structure: key PSKEY (incl. INFTY), administration fields and PS9nnn. PA9nnn is the database table: MANDT, key PAKEY, administration fields and PS9nnn.
Q3. How do you add fields to a standard infotype?
PM01 → Enhance infotypes → create the customer include CI_Pnnnn with ZZ fields, then Create all to generate module pool ZPnnnn00 with a subscreen in the standard screen. PAnnnn and Pnnnn get the fields automatically.
Q4. Custom infotype or customer include – how do you decide?
Independent data with its own validity or several records at a time → custom infotype. A few fields that belong to the standard record and share its validity → customer include.
Q5. Where do you put a validation for a standard infotype?
In EXIT_SAPFP50M_002 (include ZXPADU02, enhancement PBAS0001) or in BAdI HRPAD00INFTY method AFTER_INPUT. Defaults go into EXIT_SAPFP50M_001 (ZXPADU01). Convert PRELP with CL_HR_PNNNN_TYPE_CAST.
Q6. What are the methods of HRPAD00INFTY and when do they run?
BEFORE_OUTPUT before the screen is shown, AFTER_INPUT after the user's input (with old and new record), IN_UPDATE in the update task when the record is saved – no messages there.
Q7. How do you update infotype data from a program?
BAPI_EMPLOYEE_ENQUEUE, then HR_INFOTYPE_OPERATION with the record and an operation (INS, MOD, DEL, LIS9, COP), check RETURN for E/A, then BAPI_EMPLOYEE_DEQUEUE. Never a direct INSERT into PAnnnn.
Q8. Why not update PA tables directly?
A direct update skips time-constraint handling, validations, exits/BAdIs, the infotype log, dynamic follow-ups and authorization checks – data becomes inconsistent and changes are not traceable.
Q9. Which HR authorization objects do you know?
P_ORGIN (infotype, subtype, level, personnel area, employee group/subgroup, org key), P_ORGINCON (with structural profile), P_ORGXX (administrator), P_PERNR (own data via IT0105), P_ABAP (report checks), PLOG (OM data), P_PCLX (clusters).
Q10. What are structural authorizations?
They restrict which objects/persons a user sees: a profile in OOSP defines a root object and an evaluation path, OOSB assigns it to the user. Combined with P_ORGIN (what) they give the final access.
Q11. Your report selects from PA0008 directly. What must you add?
An authorization check per employee and infotype with HR_CHECK_AUTHORITY_INFTY (or read with the LDB / HR_READ_INFOTYPE, which check automatically) – otherwise users see salaries they are not allowed to see.
Q12. What is P_ABAP used for?
For a specific report using LDB PNP it can simplify (COARS = 1) or switch off (COARS = 2) the LDB's authorization check, e.g. for statistics that show no personal data.
Q13. How do you start a workflow when an infotype record changes?
Declare the infotype and its object type in SWEHR1, assign the event to the infotype operation in SWEHR2, and link the event to the workflow in SWE2. Test with the event trace (SWELS / SWEL). Alternatives: a dynamic action, or raising the event yourself in BAdI HRPAD00INFTY.
05 · Payroll & Time Data – Clusters
Q1. Why is payroll data stored in clusters and not in normal tables?
A payroll run creates many tables per employee and period. Storing them as one compressed record per result keeps payroll fast and keeps each result exactly as calculated, which retro and audits need. The price: no SELECT on the content – you IMPORT or use FMs.
Q2. What is stored in PCL1, PCL2, PCL3 and PCL4?
PCL1: input data and texts (B1 time events, TX infotype texts). PCL2: results – payroll (RX / country clusters), the cluster directory CU, time evaluation B2. PCL3: recruitment / applicant data. PCL4: change documents of infotypes.
Q3. What is RGDIR?
The cluster directory of an employee (cluster CU in PCL2): one line per payroll result with SEQNR, for-period, in-period, status SRTZA (A/P/O) and off-cycle information. You read it with CU_READ_RGDIR to find the SEQNR before you read a result.
Q4. How do you read payroll results in ABAP?
CU_READ_RGDIR for the directory, filter for SRTZA = 'A' and the period, get the cluster ID from T500L, then PYXX_READ_PAYROLL_RESULT per SEQNR into PAY99_RESULT and loop over inter-rt. The classic alternative is the RP-IMP-C2-xx macros / IMPORT FROM DATABASE.
Q5. What is the difference between RT and CRT?
RT holds the wage types of this one period; CRT holds cumulated values (e.g. year to date) per wage type and cumulation type.
Q6. What is WPBP used for?
It holds the work place and basic pay data for each split within the period, e.g. when an employee changes org unit mid-month; RT lines refer to the split via APZNR.
Q7. Explain for-period and in-period.
The for-period (FPPER) is the period a result belongs to; the in-period (INPER) is the run in which it was calculated. FPPER < INPER means the result was created by retroactive accounting.
Q8. What is retroactive accounting?
Automatic recalculation of already-paid periods when master data is changed in the past. New results become 'A', the replaced ones 'P' / 'O', and the differences are paid in the current period.
Q9. What is an off-cycle payroll run?
A payroll run outside the regular schedule for single employees – bonus, correction, manual cheque, advance – run in the Off-Cycle Workbench; identified in RGDIR by PAYTY, PAYID, BONDT and OCRSN.
Q10. What are schemas and PCRs?
A schema (PE01) is the step-by-step logic of payroll or time evaluation, built from functions. A PCR (PE02) is a rule that processes wage types with operations. Custom functions and operations are created in PE04 and coded in ABAP.
Q11. What are technical wage types? Give examples.
Wage types generated by payroll, starting with '/': /101 total gross, /550 statutory net, /559 bank transfer, /560 amount paid. Wage types are defined in T512W with texts in T512T.
Q12. How do time evaluation results reach payroll?
RPTIME00 writes cluster B2 (ZES, SALDO, ZL, FEHLER). Payroll reads the time wage types in table ZL of the period, so time evaluation must run before payroll.
Q13. What happens after payroll, and how is the payslip produced?
Follow-up activities read the results: the remuneration statement (PE51 classic form or HRFORMS), the posting run to FI/CO (PC00_M99_CIPE, PCP0), the bank transfer from table BT (preliminary DME program) and third-party exports with the Interface Toolbox PU12.
06 · HR in S/4HANA, SuccessFactors & Integration
Q1. Is SAP HCM part of S/4HANA?
Not as a re-designed core module. Classic HCM can run in S/4HANA in the time-limited compatibility scope; the on-premise successor is SAP HCM for SAP S/4HANA; SAP's strategic cloud HR is SuccessFactors Employee Central with Employee Central Payroll.
Q2. What is Employee Central Payroll?
SAP's payroll engine offered as a cloud service operated by SAP. Employee data comes from Employee Central by point-to-point replication and is stored as infotypes; schemas, PCRs and payroll clusters work as on premise.
Q3. Why does an employee need a business partner in S/4HANA?
The BP is the central master record for all persons and companies in S/4HANA (ECC: no employee BP needed – payments ran via an employee vendor created with PRAA; S/4HANA: mandatory, Note 2340095). Applications such as travel management, purchasing or projects use the employee via the BP (role Employee, plus a supplier role for payments).
Q4. How are employees synchronised to business partners?
With HCM in the same system: report /SHCM/RH_SYNC_BUPA_FROM_EMPL, initially and as a periodic job. Otherwise employee data is replicated from SuccessFactors or another HR system and S/4HANA creates the BPs.
Q5. How does SuccessFactors integrate with SAP back ends?
Through APIs – mainly the OData API and the Compound Employee API – using SAP Integration Suite with SAP's standard integration packages; EC to ECP uses point-to-point replication.
Q6. Name some SuccessFactors OData entities.
User, PerPerson, EmpEmployment, EmpJob and foundation objects such as company and department.
Q7. How do you distribute HR master data between SAP systems?
ALE with message type HRMD_A (HRMD_ABA for non-HR receivers): distribution model BD64 with infotype filters, partner profiles WE20, initial load with PFAL, deltas via change pointers and RBDMIDOC.
Q8. What is the difference between HRMD_A and HRMD_ABA?
HRMD_A carries full HR master data to another HR system; HRMD_ABA carries the org structure and basic person data to non-HR systems that only need it for workflow, purchasing or CRM.
Q9. How has ESS/MSS changed?
ECC: Java (Portal), ITS or Web Dynpro ABAP; S/4HANA: SAP Fiori apps (My Leave Requests, My Timesheet, My Paystubs …) based on OData services or Web Dynpro ABAP – Java, ITS and HR Renewal UI5 are not available (Note 2383879); with SuccessFactors, self-service is part of the cloud UI.
Q10. What does clean core mean for HR custom code?
No modifications of standard HR programs, write infotypes only through HR_INFOTYPE_OPERATION/BAPIs, use PM01, BAdIs and PCRs as the extension points, encapsulate reads, and move cloud extensions to BTP using released APIs.
Q11. In a greenfield S/4HANA project with SuccessFactors, what HR ABAP work remains?
Integration (replication, BP synchronisation, monitoring), payroll in ECP (PCRs, reports on payroll results), payroll posting to Finance, and S/4HANA-side extensions that use employee data.
Q12. How would you build a Fiori app that shows employee data and still respects HR authorizations?
Expose the data through an OData service – a RAP custom entity with an ABAP query class, or a SEGW service – and check every employee with HR_CHECK_AUTHORITY_INFTY (or read via HR function modules that check). A plain CDS view with an access control is not enough, because P_ORGIN depends on the time-dependent organisational assignment and structural authorizations.
Q13. How is sensitive HR data protected in S/4HANA?
HR authorizations limit access; Read Access Logging records who viewed sensitive fields; ILM blocks and deletes personal data after the retention period; interfaces send only the infotypes the receiver needs.