Symptom
- When the owner field in a lead is changed twice and the lead is converted to an account and contact, the owner in the account reverts to the original owner instead of reflecting the latest changes.
- The issue occurs consistently, and the account changes tab does not show the updated owner details.
Environment
- SAP Cloud for Customer
- SAP Cloud Applications Studio
Reproducing the Issue
- Login on UI.
- Change the owner field in the lead.
- Convert the lead to an account and contact.
- Save and open the account converted from the lead.
- Observe that the owner field in the account reverts to the original owner instead of reflecting the latest changes made in the lead.
Cause
The custom code cause the issue.
Currently, the custom logic for copying the Lead Owner to the Account is implemented in Action Event of BusinessPartner BO .
Resolution
Instead of placing the logic in this action, it is recommended to move this logic to the AfterModify or BeforeSave event of the Account BO.
Keywords
lead owner, account owner, conversion issue, PDI,Custom code,Action,AfterModify,BeforeSave, , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , LOD-CRM-LM , Lead Management , Problem
Product
SAP Cloud Applications Studio all versions ; SAP Cloud for Customer core applications all versions
SAP Knowledge Base Article - Public