Function location in ERP and C4C
The Functional Locations in SAP ERP is downloaded to SAP Cloud for Customer and becomes an Installation Points of type 'Functional Location':
C4C InstallationPoint UI: / BYD_COD/ServiceOnDemand/InstallationPoint/UI/COD_IPoint_TI.TI.uicomponent
To tell whether an installation point is downloaded from ERP or created directly from C4C in C4C, you only need to see if the external ID field is empty. If it is not empty, the installation point is downloaded from ERP, and this field maintains the function location ID of ERP.
You can see that the field name that controls whether the External ID is Enabled or not is Can_Add_Remove. This field is yellow in UI Designer, indicating that it is not tied to BO node, but is calculated dynamically.
Computational logic:
The status field of InstallationPoint is bound to the field of BO:
/ Root/LifeCycleStatusCode- > http://sap.com/xi/AP/FO/IBase/Global- > Root- Status- LifeCycleStatusCode
The event onValueChanged in this LifeCycleStatusCode field has an event handler function SetIPointParams:
We can think of the logic of this event handler as a switch case statement:
When the value of IPointStatus is 1, an operation named InPrep is performed.
The details of the operation is to assign X (true) to the field Can_Add_Remove
For more original Jerry articles, please follow the official account "Wang Zixi":