SAP Knowledge Base Article - Public

3527542 - Business rule statement is getting cleared after adding a field in the condition

Symptom

  • While attempting to create a business rule for a custom MDF object, the system is unable to fetch any fields in the business rules.
  • When trying to add a field in the business rule, the entire statement is automatically cleared out.

Environment

SAP SuccessFactors HCM Suite

Reproducing the Issue

  1. Navigate to 'Configure Business Rules'.
  2. Attempt to create a new rule for a custom MDF object.
  3. When trying to add a field to the business rule, observe that the entire statement is automatically cleared out.

Cause

The issue arises due to the presence of line breaks (\\n) in the labels of some fields in the MDF object definition. The rule engine does not support line breaks in labels.

Resolution

  1. Navigate to "Configure Object Definition" and review the MDF object definition of the affected fields.
  2. Identify the fields containing a line break (\\n) in their labels.
  3. Delete the line breaks in the labels of the affected fields. Note that the line break character (\\n) is not visible in the MDF object definition UI. The "invisible" line break can be deleted by accessing the label field details and removing the extra space/line. The complete label should be displayed in one line afterwards.

See Also

MDF Rule Scenario Use Cases | SAP Help Portal

Keywords

SAP SuccessFactors, MDF object, Business Rule, Line Break, Label, Configure Object Definition, Invisible Linebreak. , KBA , LOD-SF-MDF-RUL , Custom Oject based Business Rules , Problem

Product

SAP SuccessFactors HCM Suite all versions