in an organization plan, relationships are used to link different object types.
example − a person holding a position in an organization is assigned with cost center. it defines a person to position relationship and position to organization unit.
while defining a hierarchical organization structure, it means you are creating a relationship between organization objects. when a person is holding a position in an organization unit, it means there is relationship between position object and organization object.
a relationship can be created in both the ways- top down and bottom approach. these relationships are normally maintained in hrp001 table. if these relationships are not standard, you may need additional tables.
to maintain relationship, use t-code: pp01 or pp03.
a new window will open with the name maintain object.
select the object type, enter position number, give relationship and click create (f5).
object types and essential relationships
go to spro → img → personnel management → organizational management → basic settings → data model enhancement → maintain object types → execute
to create new object type and assigning relationships follow the steps given below.
step 1 − create new object type and assign essential relationships.
step 2 − assign object to the required infotypes.
step 3 − maintain subtypes.
step 4 − maintain personnel actions.
step 5 − assign number range.
step 6 − maintain object via pp03 or pp01.
step 7 − go to the change view “object types”: overview window. click new entries to create a new object type. you can also copy an existing object type.
step 8 − enter object type text, code, etc. when the object is created, assign essential relationships to it by clicking on essential relationships on the left side.
assigning a relationship means that once an object is created, the assigned relationships are mandatory to be maintained.
maintaining object types is available in table: t7780
maintaining essential relationship is available in table: t7750
relationship maintenance
for maintaining relationship in sap hr module, go to spro → img → personnel management → organizational management → basic settings → data model enhancement → relationship maintenance → maintain relationships → execute
in the left pane, go to allowed relationships, select the relationship you want to maintain, click position.