HRP1000 and HRP1001 are two of the most foundational database tables in SAP Human Capital Management (HCM) for Organizational Management (OM).
At a high level, the difference is that HRP1000 stores the organizational objects themselves, while HRP1001 stores the relationships between those objects. Together, they are essential for building and maintaining the entire organizational structure in SAP.
| Feature | HRP1000: Object (Infotype 1000) | HRP1001: Relationship (Infotype 1001) |
|---|---|---|
| Primary Purpose | Defines the existence of an organizational object. | Defines how one organizational object is connected to another. |
| Information Stored | Basic details about an object, including its unique Object ID (OBJIDcap O cap B cap J cap I cap D ππ΅π½πΌπ· ), object type (OTYPEcap O cap T cap Y cap P cap E πππππΈ ), name (STEXTcap S cap T cap E cap X cap T πππΈππ ), abbreviation (SHORTcap S cap H cap O cap R cap T ππ»ππ π ), and validity dates. | Details of a relationship, such as the two objects involved (OBJIDcap O cap B cap J cap I cap D ππ΅π½πΌπ· and SOBIDcap S cap O cap B cap I cap D πππ΅πΌπ· ), the relationship type (RELATcap R cap E cap L cap A cap T π πΈπΏπ΄π ), and the direction of the relationship (RSIGNcap R cap S cap I cap G cap N π ππΌπΊπ ). |
| Data Examples | Organizational Unit '00000001' (Corporate HQ)Position '00000042' (Marketing Manager)Job 'SALES' (Sales Representative). | Position '00000042' belongs to Org Unit '00000001' (RELATcap R cap E cap L cap A cap T π πΈπΏπ΄π = 'A003')Employee holds Position '00000042' (RELATcap R cap E cap L cap A cap T π πΈπΏπ΄π = 'B008')Position 'VP Sales' reports to Position 'CEO' (RELATcap R cap E cap L cap A cap T π πΈπΏπ΄π = 'A002'). |
| Table Structure | A simple flat-file structure, with each record representing a single, unique object. | A more complex structure that links two objects together. Each relationship is actually stored twice, once for each direction (top-down and bottom-up). |
| Role in OM | Provides the basic building blocks (nodes) for the organizational structure. | Creates the framework (connections) that defines the reporting lines, hierarchical structure, and staffing assignments. |
Detailed article: The two-table model of SAP Organizational Management
To understand the core difference between HRP1000 and HRP1001, it is best to view them as a "nodes and connections" model of a company's organizational structure.
- HRP1000: The Nodes. This table contains the individual components, or "nodes," of the organization. When you create a new organizational unit, a position, or a job in SAP, the system generates a new record in the HRP1000 table. This table stores the fundamental existence and descriptive details of these objects.
- HRP1001: The Connections. This table provides the "connections," or relationships, that link the nodes from HRP1000 together. For a position to be part of an organizational unit, or for an employee to be assigned to a position, there must be a corresponding entry in HRP1001 defining that connection.
This two-table structure is how SAP builds the complete picture of your organization, from the highest-level reporting lines down to which employees occupy which seats.
Anatomy of an HRP1000 record
An entry in HRP1000 is relatively straightforward. Its primary fields define the object itself:
-
PLVARcap P cap L cap V cap A cap R
ππΏππ΄π
(Plan Version): The plan to which the object belongs (e.g., '01' for the active plan).
-
OTYPEcap O cap T cap Y cap P cap E
πππππΈ
(Object Type): The type of object being created. Common values include:
- O: Organizational Unit
- S: Position
- C: Job
- P: Person
-
OBJIDcap O cap B cap J cap I cap D
ππ΅π½πΌπ·
(Object ID): A unique, system-generated number that identifies the object.
-
STEXTcap S cap T cap E cap X cap T
πππΈππ
(Object Name): The full, descriptive name of the object.
-
SHORTcap S cap H cap O cap R cap T
ππ»ππ π
(Abbreviation): A short-text version of the object's name.
-
BEGDA/ENDDAcap B cap E cap G cap D cap A / cap E cap N cap D cap D cap A
π΅πΈπΊπ·π΄/πΈππ·π·π΄
: The validity period for the object.
Anatomy of an HRP1001 record
The HRP1001 table defines a relationship between two objects, and therefore has a more complex key and set of fields:
-
OTYPEcap O cap T cap Y cap P cap E
πππππΈ
and OBJIDcap O cap B cap J cap I cap D
ππ΅π½πΌπ·
: The object initiating the relationship (the "from" object).
-
RSIGNcap R cap S cap I cap G cap N
π ππΌπΊπ
(Relationship Direction): Defines the direction of the relationship, which is a key concept. It is either 'A' for a "top-down" relationship or 'B' for a "bottom-up" relationship.
-
RELATcap R cap E cap L cap A cap T
π πΈπΏπ΄π
(Relationship Type): The specific type of relationship (e.g., '002' for "Reports to," '008' for "Holder").
-
SCLAScap S cap C cap L cap A cap S
ππΆπΏπ΄π
(Related Object Type): The object type of the receiving object (the "to" object).
-
SOBIDcap S cap O cap B cap I cap D
πππ΅πΌπ·
(Related Object ID): The ID of the receiving object.
A crucial point about HRP1001 is that relationships are created bi-directionally to ensure consistency. For example, if you create a relationship stating that Position X reports to Position Y (RSIGNcap R cap S cap I cap G cap N
π ππΌπΊπ
='A'), the system automatically creates a corresponding inverse relationship stating that Position Y is reported to by Position X (RSIGNcap R cap S cap I cap G cap N
π ππΌπΊπ
='B'). This ensures the integrity of the organizational chart when traversing it in either direction.
A practical example: Mapping the organization
Consider a simple organizational structure:
- The 'Global Marketing' organizational unit.
- The 'Marketing Manager' position.
- The employee 'Jane Smith.'
Here is how HRP1000 and HRP1001 work together to represent this in SAP:
- HRP1000 records are created for each object:
- Record 1: $$(OTYPE='O', OBJID='00001000', STEXT='Global Marketing')
- Record 2: $$(OTYPE='S', OBJID='00002000', STEXT='Marketing Manager')
- Record 3: $$(OTYPE='P', OBJID='12345678', STEXT='Jane Smith')
- HRP1001 records define the relationships:
- Connection 1: Position belongs to Org Unit:
- To connect the 'Marketing Manager' position to the 'Global Marketing' unit, two records are created in HRP1001:
-
**Top-down (RSIGNcap R cap S cap I cap G cap N
π ππΌπΊπ
='A'):**(OTYPE=β²Oβ²,OBJID=β²00001000β²,RELAT=β²003β²,SCLAS=β²Sβ²,SOBID=β²00002000β²)open paren cap O cap T cap Y cap P cap E equals prime cap O prime comma cap O cap B cap J cap I cap D equals prime 00001000 prime comma cap R cap E cap L cap A cap T equals prime 003 prime comma cap S cap C cap L cap A cap S equals prime cap S prime comma cap S cap O cap B cap I cap D equals prime 00002000 prime close paren
(πππππΈ=β²πβ²,ππ΅π½πΌπ·=β²00001000β²,π πΈπΏπ΄π=β²003β²,ππΆπΏπ΄π=β²πβ²,πππ΅πΌπ·=β²00002000β²)
(Org Unit 00001000 includes Position 00002000)
-
**Bottom-up (RSIGNcap R cap S cap I cap G cap N
π ππΌπΊπ
='B'):**(OTYPE=β²Sβ²,OBJID=β²00002000β²,RELAT=β²003β²,SCLAS=β²Oβ²,SOBID=β²00001000β²)open paren cap O cap T cap Y cap P cap E equals prime cap S prime comma cap O cap B cap J cap I cap D equals prime 00002000 prime comma cap R cap E cap L cap A cap T equals prime 003 prime comma cap S cap C cap L cap A cap S equals prime cap O prime comma cap S cap O cap B cap I cap D equals prime 00001000 prime close paren
(πππππΈ=β²πβ²,ππ΅π½πΌπ·=β²00002000β²,π πΈπΏπ΄π=β²003β²,ππΆπΏπ΄π=β²πβ²,πππ΅πΌπ·=β²00001000β²)
(Position 00002000 belongs to Org Unit 00001000)
-
- To connect the 'Marketing Manager' position to the 'Global Marketing' unit, two records are created in HRP1001:
- Connection 2: Employee holds Position:
- To staff 'Jane Smith' into the 'Marketing Manager' position, another pair of HRP1001 records is created:
-
**Top-down (RSIGNcap R cap S cap I cap G cap N
π ππΌπΊπ
='A'):**(OTYPE=β²Sβ²,OBJID=β²00002000β²,RELAT=β²008β²,SCLAS=β²Pβ²,SOBID=β²12345678β²)open paren cap O cap T cap Y cap P cap E equals prime cap S prime comma cap O cap B cap J cap I cap D equals prime 00002000 prime comma cap R cap E cap L cap A cap T equals prime 008 prime comma cap S cap C cap L cap A cap S equals prime cap P prime comma cap S cap O cap B cap I cap D equals prime 12345678 prime close paren
(πππππΈ=β²πβ²,ππ΅π½πΌπ·=β²00002000β²,π πΈπΏπ΄π=β²008β²,ππΆπΏπ΄π=β²πβ²,πππ΅πΌπ·=β²12345678β²)
(Position 00002000 is held by Person 12345678)
-
**Bottom-up (RSIGNcap R cap S cap I cap G cap N
π ππΌπΊπ
='B'):**(OTYPE=β²Pβ²,OBJID=β²12345678β²,RELAT=β²008β²,SCLAS=β²Sβ²,SOBID=β²00002000β²)open paren cap O cap T cap Y cap P cap E equals prime cap P prime comma cap O cap B cap J cap I cap D equals prime 12345678 prime comma cap R cap E cap L cap A cap T equals prime 008 prime comma cap S cap C cap L cap A cap S equals prime cap S prime comma cap S cap O cap B cap I cap D equals prime 00002000 prime close paren
(πππππΈ=β²πβ²,ππ΅π½πΌπ·=β²12345678β²,π πΈπΏπ΄π=β²008β²,ππΆπΏπ΄π=β²πβ²,πππ΅πΌπ·=β²00002000β²)
(Person 12345678 holds Position 00002000)
-
- To staff 'Jane Smith' into the 'Marketing Manager' position, another pair of HRP1001 records is created:
- Connection 1: Position belongs to Org Unit:
Key takeaway
Ultimately, the separation of HRP1000 and HRP1001 is a fundamental design principle in SAP HCM that enforces data integrity and flexibility. HRP1000 provides the content (the objects), while HRP1001 provides the context (the relationships). This structured approach enables the complex reporting and analysis of organizational data that is central to many SAP functions. Any developer or consultant working with Organizational Management must have a clear understanding of these two tables and their interplay to effectively navigate and manipulate the organizational model.