cancel
Showing results for 
Search instead for 
Did you mean: 

C4C: Replication from ERP to C4C

siwei_yang
Participant
0 Kudos

Hi there,

we have implemented our validation logic for address by enhancing the BO AddressSnapshot. It will prevent saving an address if the address input by user is not valid.

But now we do not want to execute this part of logic in case of replication of an account from ERP to C4C, because It will make the replication failed.

However , I have no idea how to check if the current processing is triggered by a replication or just data inputing of user.

Is there any global or system variable like sy-uname in ABAP world ?

Can any one give some ideas ?

Thank you

Peter

View Entire Topic
former_member226
Employee
Employee

Hi,

You can identify if a use is manually changing or changes are done by a integraion user by very simple piece of code.

import AP.PC.IdentityManagement.Global;
var ident = Identity.Retrieve(Context.GetCurrentIdentityUUID());
if (ident.BusinessPartnerUUID.IsInitial())  // It is a technical User
{
	// Write Business Logic
}
else	// Manual change
{
	// Write Another Business Logic
}

Here we are just checking if the BP UUID of the user is initial or not. If it is initial then it is a technical user (Integration user based change) else it is a Service Agent or Employee(Manual change).

Thanks

Saurabh