Modifying the Data Model

Objective

After completing this lesson, you will be able to add objects to an organizational structure.

Object Type Creation

Call transaction code SM30. Enter the table name T77SO and display. The table on the left is displayed. Return to the program and enter table T777I and select enter. The table on the right is displayed. Screenshots showing object types and infotypes. Labels indicate table IDs: T7780 for Object Types and T777I for Infotypes.

You can create object types, assign them characteristics in the form of infotypes, and link them to each other or to existing object types with your own relationships.

Object types are defined in table T778O by a two-character CHAR string. The namespace A*-Z* is reserved for SAP; 0*-9* is for customers.

With regard to the origin of the master record, there is a technical distinction between internal and external object types.

The difference between the object types is as follows:

Internal object types: 
With this object type, the master records are stored in database tables belonging to Personnel Planning (for example, organizational units, positions, and jobs).
External object types:
With this object type, the master records are stored in database tables belonging to other SAP applications (for example, cost centers). In Personnel Planning, the system refers to these external objects by using relationships. To define an external object type, you must create an interface program (for example, model RHPREL00 and an entry in table T77EO).

You can see the tables for enhancing the data model in Customizing, by choosing Personnel ManagementOrganizational ManagementBasic SettingsData Model EnhancementMaintain Object Types.

All information about objects is saved in the system in the form of infotypes, in particular the object itself or its master record and its relationships.

Important Infotypes for Object Types

The Object infotype (1000) and the Relationships infotype (1001) are the central Personnel Planning infotypes. Infotype 1000 defines the existence of an object in the system. 

All object types must have at least infotypes 1000 and 1001 to exist.

The infotypes are defined in table T778T. In table T777I, you can maintain the infotypes that are allowed for an organizational object.

Usually, you create new objects by using the Object infotype (1000), and then specify the relationships between the objects in the Relationships infotype (1001). You must maintain the Object infotype (1000) before you can maintain the other Personnel Planning infotypes.

Enhance the Data Model