SAP Knowledge Base Article - Public

2908039 - Business Action Restrictions on Deletion of Lead is not Working

Symptom

You have defined a business action restriction on lead deletion, but you see that the users are able to delete leads.

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Go to Sales Work center
  2. Go to Leads View
  3. In the OWL (object worklist), select the lead you want to delete
  4. Select More

You expect the button Initiate Deletion, should be grayed out

Cause

You have selected DELETE_LEAD instead of LEAN_LEAD_DELETE. Lead is still the business object where information is persisted. LEAN_LEAD is a wrapper on top (transformed object) which also shows additional business partner data along with lead data. This does not have persistency. So while the UI is built on LEAN_LEAD, the lead data is finally stored in LEAD.

Resolution

  1. Go to Administrator workcenter 
  2. Go to General Settings view
  3. Go to Business Roles Section under Users
  4. Select business role ABC (ABC represents the id of the role)
  5. Select View all
  6. Go to facet Fields & Actions
  7. Under the section Business Action Restrictions,  you have to define the below restriction and Save

Name: LEAN_LEAD_DELETE
Business Context: Lead
UI text: Delete
Access Restriction: Disabled

Keywords

Lead, Lean Lead, Deletion, Initiate Deletion, UI , KBA , ui , business role , delete , lead owl , access restriction , lean lead , LOD-CRM-LM , Lead Management , Problem

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions