The following function module enables you to set up a relationship between an SAP organizational object and a position or organizational unit:
RH_SAP_ORG_OBJEC_RELATE
Assigns an SAP organizational object to an object in Organizational Management
Interface
Export Parameters
Exceptions
When the function module is accessed, you specify the SAP organizational object type (name is taken from the Business Object Repository) and the object type-specific key that is used to uniquely identify an object of this type.
You assign an organizational unit to this SAP organizational object in the input field. This relationship is transferred to Organizational Management.