SAP Knowledge Base Article - Public

2849730 - How to remove Delete button from MDF portlet/ UI in People Profile?

Symptom

  • You want to remove the delete button from the UI of a custom MDF object, but there is no way to do it through RBP since the Delete permission is not available since effective date is None.
  • How to control the delete button's appearance via the UI (not via RBP)?
  • How to restrict the deletion of data from MDF portlet?

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

  • SAP SuccessFactors HCM Suite
  • Metadata Framework (MDF)

Reproducing the Issue

  1. Create a custom MDF object and set the effective date as None;
  2. Create an UI for this object and configure it to be on People Profile;
  3. See that the UI has a Delete button;
    2019-10-15_17-52-32.png
  4. Go to Manage Permission Roles and try to remove the delete permission from the user, but is not available.

Cause

In objects set with effective date as None, the delete permission is not exclusively available. This way, by default the delete button will always be shown in the UI.

Resolution

If you are able to change the effective date of the object to any other option that is not None, the delete option in RBP will become available, and then you will be able to control the visibility of this button over there.

However, in case the object needs to be set as None or in case you want it not to be controlled via RBP, we have an workaround.

==> It consists on changing the configuration of the UI created for the object. In Manage Configuration UI, there is an option to control the visibility of the Delete button.

To configure this, please follow the below steps:

  1. Go to Manage Configuration UI;
  2. Search for the UI associated with the object you are working on;
  3. Click on Edit Properties;
    3.png
  4. Go to Control Options and set the "Delete a record" to No.
    4.png
  5. Save the rule;
  6. Go to People Profile and edit the object, and the delete button should not appear.
    5.png

See Also

2849680 - Unable to see all options of permissions for MDF objects in RBP

Keywords

delete, button, UI, people profile, My employee file, Portlet, permission, rule, restrict, deletion, MDF, , KBA , LOD-SF-MDF-UI , UI Config, Layout & Rules , How To

Product

SAP SuccessFactors HXM Suite all versions