Symptom
You are experiencing unexpected system behavior and want to determine if your ABSL scripting logic is having an impact. However, you do not want to entirely Disable or de-scope the PDI Solution, or impact other users in the system.
Environment
- SAP Business ByDesign
- SAP Cloud Applications Studio
- SAP Cloud for Customer
Resolution
You can write a small piece of logic to skip over relevant ABSL scripting logic for a particular user:
- Reproduce the unexpected behavior and use the Trace functionality in the SAP Cloud Applications Studio.
- Identify which ABSL scripts are being called (actions, events, validations, functions).
- At the beginning of each script, write the following logic (or similar):
import AP.PC.IdentityManagement.Global;
var identity = Context.GetCurrentIdentityUUID();
var userId = Identity.Retrieve(identity).ID.content;
if (!userId.Contains("SAP_SUPP")){
//script body
} // end of script
NOTE: This can easily be also implemented in the Production Tenant using the Production Bug-Fix functionality.
See Also
Keywords
SDK, PDI, SAAB, Trace, correction patch, bug-fix, switch , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , How To