Defining Employee and Manager Relationships

Objective

After completing this lesson, you will be able to define employee and manager relationships for replication.

Types of Manager Relationships

You define different types of employee-manager relationships (such as a line manager or a matrix manager relationship) and the corresponding evaluation paths in the Define Relationship Types for Managers and Employee-Related Org. Mgmt Data Customizing activity (view V_ECPAO_MNGRTYPE).

Context

The Determination of Managers and Organizational Management Data (ECPAO_MNGR_TYPES_EXTRACTION) program (transaction ECPAO_MNGR_EXTR) uses the types of manager relationships that you define here to determine the different types of managers for a given selection of employees.

In the VC_ECPAO_MAP view cluster, you can use the types of manager relationships that you define here to map managers from SAP S∕4HANA to Employee Central. For example, to use them in the Job Relationship template.

For each type of manager relationship that you want to use, follow these steps.

Procedure

  1. Enter a unique ID and a description of the relationship type. You can enter any description. The ID that you enter here is used in the VC_ECPAO_MAP view cluster, in the Primary Mapping view. In this view cluster, enter the ID in the Subtype field.
  2. Select the evaluation path that is to be used to determine the managers for this type of relationship. The evaluation path describes a chain of relationships between objects in a hierarchical structure, such as organizational unitpositionpath. The SAP S∕4HANA system evaluates the structure along this evaluation path and takes into account the objects that it finds using this path. You can use evaluation paths that start with the object types * (any), O (organizational unit), S (position), or P (person).
  3. Enter the structure depth. This is a number of one to six digits. The number corresponds with the different levels of an organizational structure, with 1 being the highest level in a structure, and all subsequent numbers representing lower levels. The level number determines how much of a structure is processed. For example, if the structure depth is 3, the SAP S∕4HANA system processes down three levels of the structure, beginning from the object that you select as the root object. If you don't want to limit processing, leave the structure depth blank.
  4. To define whether the type of manager relationship is currently active and used by the manager extraction report or not, select or clear the Is Active checkbox.
Results of Defining Relationship Types for Managers

Employee Manager Determination

You can determine different types of managers for a given selection of employees, based on the types of manager relationships that you have defined in the Relationship Types for Managers and Organizational Mgmt Data (V_ECPAO_MNGRTYPE) view (seeDefine Types of Manager Relationships). The managers are stored in the Managers and Org. Mgmt Fields for Employee Replication (ECPAO_EE_MGNR) table so that manager relationships can be transferred to Employee Central. Employee Central uses the manager relationships, for example, in the Job Relationships and the Job Information templates to identify different types of managers, such as matrix managers, second managers, custom managers, or HR managers.

  1. On the selection screen, specify the personnel numbers for which you want to determine the managers.
  2. The program reads the active types of manager relationships from the V_ECPAO_MNGRTYPE view and uses the evaluation paths stored there to determine the managers for the given selection of employees.
  3. To check the messages issued by the program, go to the Analyze Application Log (SLG1) transaction.
  4. Enter the ECPAO object and ECPAO_MANAGER subobject, optionally specify extra selection criteria, and choose Execute.

Next Steps

The Employee Data Extraction program reads the information about the managers from the ECPAO_EE_MGNR table. If it finds the manager for an employee, it transfers this information to Employee Central. Otherwise, the entry NO_MANAGER is transferred.

Procedure

  1. Go to the Define Background Job (SM36) transaction.
  2. Schedule the Determination of Managers and Organizational Management Data (ECPAO_MNGR_TYPES_EXTRACTION) program as a regular background job.

Enhancement 1H 2025

You can now use the Change Managerial Data Business Add-In (BAdI) to overwrite the standard manager determination logic used in the ECPAO_MNGR_TYPES_EXTRACTION program.

Configuration Requirements

  • Define Relationship Types for Managers and Employee Related Org.Mgmt Data in Customizing.
  • If you use the SFSF EC INTEGRATION (PA_SE_IN) add-on, you must install support package 39 of this add-on in your SAP S/4HANA or SAP ERP system.

  • If you use the SFSF EC S4 HCM INTEGRATION (ECS4HCM) add-on, you must install support package 05 of this add-on in your SAP S/4HANA system.
  • Implement the BAdI Change of Managerial Data (EX_ECPAO_MNGR_DATA_MODIFY).

Define Types of Manager Relationships in SAP S4/HANA

Summary

  • Different types of employee-manager relationships (e.g., line manager, matrix manager) are defined in the V_ECPAO_MNGRTYPE view, including unique IDs, descriptions, evaluation paths, and structure depth to determine reporting hierarchy.
  • The ECPAO_MNGR_TYPES_EXTRACTION program uses these relationship types and evaluation paths to identify managers for selected employees, storing results in the ECPAO_EE_MGNR table for replication to Employee Central.
  • Mapped manager relationships are transferred to Employee Central, supporting templates such as Job Relationships and Job Information to distinguish various manager types (e.g., matrix, HR, custom).
  • Regular background jobs should be scheduled for manager determination, and relevant SAP SuccessFactors integration add-on support packages must be installed for full functionality.