on 02-24-2020 1:17 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
11 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.