/PACG/ECM_TRIG_DEPRT - Department

Department Units can be sent to cloud and there assigned to employees. The Employee’s Department object shows an employee assignment to a department. In FSM it is seen here:

Prerequisites

Departments themselves are only maintained in ECC using: SPRO/Personnel Management/Personnel Administration/Organizational Data/Organizational Assignment/Organizational Plan/Define Organizational Units

Because in FSM departments’ definition has no validity date therefore from SAP only those which are within the validity date should be sent.

Then assignment to employee takes place in PA30.

Process

Run report /PACG/ECM_TRIG_DEPART to trigger sending wanted department unit definition.

After report run IDOC type /PACG/ECM_DEPART is sent to the cloud.

Department then can be seen in cloud master data, and be assigned to person in FSM

Department assignment triggers IDOC type /PACG/ECM_PERSONIN that has department name and code in /PACG/ECM_IS_USER2 segment.

Technical documentation

Synchronization is triggered from program /PACG/ECM_TRIG_DEPART where company of destination and department number to be sent can be chosen.

Report calls selection class which picks active departments defined only in main company language and continues processing with use of configuration to IDOC output. Processing results in sending of IDOC of type /PACG/ECM_IS_DEPART.

Incoming data for user is processed with use of class /PACG/ECM_CL_S_IDOC_I_USER where user assigned department is passed to infotype 0001.

Object name

Object type

Notes

/PACG/ECM_CL_S_IDOC_O_DEPART

Class (ABAP Objects)

New

/PACG/ECM_CL_S_IDOC_O_DEPART

Class (ABAP Objects)

New

/PACG/ECM_CL_S_SEL_DEPART

Class (ABAP Objects)

New

/PACG/ECM_DEPART_NAME

Data Element

New

/PACG/ECM_ITYPE_DEPART

Basic type

New

/PACG/ECM_TRIG_DEPART

Program

New

/PACG/ECM_IS_DEPART

Segment type

New

/PACG/ECM_OUT_DEPART.XSLT

Transformation

New

/PACG/ECS_CL_A_SETUP -> SETUP_IDOC_OUT

Class -> method

Enhanced

/PACG/ECM_CL_X_COMMON

Class (ABAP Objects)

Enhanced

/PACG/ECM_CL_S_IDOC_I_USER -> CHANGE_USER

Class -> method

Enhanced

/PACG/ECM_CL_S_IDOC_I_USER -> CREATE_USER

Class -> method

Enhanced

/PACG/ECM_IN_USER.XSLT

Transformation

Enhanced

 

Learn more about FSM DTO’s:

Employee Department

Person

 

 

If you'd like to help us improve the documentation, please provide your feedback using the communication channels listed /wiki/spaces/PFCC/pages/1561427969. Learn about support possibilities here.