SAP Knowledge Base Article - Public

2711869 - Date shown in message has timezone and lengthy date format

Symptom

A business rule is configured to raise an error message that includes the date() function to display the date, but the date format is shown along with the time and is lengthy.

"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 Employee Central

Reproducing the Issue

  1. Create a message definition in Manage data to should show the date values pulled from the rules.
  2. When the rule runs and a message is raised, the date is shown along with timezone instead of simple dd/mm/yyyy or mm/dd/yyyy.

Cause

Java returns date with timezone for date() function. Hence, our system which is based on JAVA will show the date in message along with timezone.

Resolution

To address your requirement and workaround this technical limitation, please adjust your rule as shown below so that a meaningful message is shown to end users:


ruleDate.PNG

 Now the meaningful message is shown as below:

ruleMessage.PNG

Keywords

 date in message, message definition, date with timezone, business rule, raise error message, throw error message, date and time, date and time is shown, remove time.  , KBA , LOD-SF-EC-JOB-RUL , Job Info Business Rules , LOD-SF-EC , Employee Central , Problem

Product

SAP SuccessFactors Employee Central all versions

Attachments

Pasted image.png