SAP Knowledge Base Article - Public

2901367 - Mandatory Setting Via Adaptation Not Working as Expected


You set a field to mandatory in any business object, but you can still process the document and save changes without filling any values to the mandatory field.


SAP Business ByDesign

Reproducing the Issue

Sample reproduction on Customer Contract BO:

  1. Navigate to the sales order work center.
  2. Open the Customer Contract view.
  3. Enable Adaptation mode.
  4. Open any contract and navigate to General tab, Renewal and Cancellation subtab.
  5. Set Minimum Contract Validity to mandatory via adaptation.
  6. Save changes and publish your settings.
  7. Now open any contract where Minimum Contract Validity is not set.
  8. Change the description of the contract and save.

The save is going through, despite having Minimum Contract Validity set to mandatory and not filled.


Sample from Personnel Adminsitration workcenter:

  1. Go to Personnel Administration
  2. Find an employee in which Email is blank and Edit
  3. Go to Personnel Data tab, any subtab
  4. Save. notice that it saves successfully.
  5. Make a change. For example add a middle name. Save. Notice that it saves successfully.
  6. Go to Employment tab, any subtab other than Workplace Contact Data. Save. Notice that it saves successfully.
  7. Now make a change. For example Notice Period. Save. Notice that it saves successfully.
  8. Go to Employment tab, Workplace Contact Data subtab. Save.
    Notice that it raises an error preventing save: "Save rejected because field (E-Mail) is defined as mandatory by key user"

This is expected because the Email field is configured (through key user adaptation) to be a mandatory field. BUT it should have happened already at earlier save actions.


Sample from Project Management BO:

  1. Project Management workcenter
  2. Open a Project
  3. Select a Task
  4. Go to the Accounting Tab
  5. Set the field Customer Group as mandatory
  6. Close and reopen the Project
  7. Go to the Basic Data tab
  8. Change the project name and Save
  9. This will be saved without issues even if the Customer Group is empty
  10. Go to the Accounting Tab
  11. Go to the Basic data tab
  12. Change the project name and save
    Error "Save rejected because field (Customer Group) is defined as mandatory by key user"


  • Mandatory settings via Adaptation are not checked for the whole business document, where they are set, but only apply to already loaded fields from UI side.
  • Fields that have not been loaded will not trigger a validation to check the mandatory setting.
  • In the contract example, the mandatory check will only be triggered if the user opened the Renewal and Cancellation subtab before saving the contract.


This is a confirmed limitation.

You can use a PDI solution to check for entry values that are not loaded from UI for any business object.


Mandatory Field; save; Adaptation; empty; save; mandatory; no error, Personnel File , KBA , AP-RC-UIF-RT-B , ByD HTML5 Client (not for Cloud for Customer) , Problem


SAP Business ByDesign 1811 ; SAP Business ByDesign 1905 ; SAP Business ByDesign 1908 ; SAP Business ByDesign 1911 ; SAP Business ByDesign 2002 ; SAP Business ByDesign 2005 ; SAP Business ByDesign 2008 ; SAP Business ByDesign 2011 ; SAP Business ByDesign 2102 ; SAP Business ByDesign 2105