SAP Knowledge Base Article - Public

2594666 - Required Date Field not respected when saving Custom Learning Activity

Symptom

When saving a Custom Learning Activity, the mandatory field "Completed Date" is not respected. E.g. you can save the activity without entering a date.

Mandatory completion date 1.jpg

**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 Career Development Planning

Reproducing the Issue

  1. Go to Development;
  2. Add Custom Learning Activity;
  3. Enter data in mandatory fields, but do not enter anything into the completion date field;
  4. Save;
  5. The data will save and the Completion Date field will be empty.

Cause

The 'Completion Date' field is for use when a learning activity field is MANUALLY set to 'completed'. Then it will auto-populate with that days date.

Resolution

If you wish to have a due date / desired completion date field - e.g. when a manager adds a custom Learning Activity to a Reports Development Goal and wishes it to be completed by a certain date - then there is a custom configuration your Partner/Consultant can do to enable this.

For Partner/Consultant:

Best practice for the scenario where you want to have a date field which will auto-complete when Learning Activity is set to completed, and have a due date field where the manager can set a desired date for completion is the following:

  1. The 'completed_date' field should only have read and not write permission. So it is visible but not editable.

An example would be:

</field-definition>
<field-definition id="completed_date" type="date" required="false" detail="true" viewdefault="on" showlabel="false" field-show-coaching-advisor="false" cascade-update="push-down">
<field-label>Date Completed:</field-label>
<field-label lang="de_DE">Abschlussdatum:</field-label>
<field-label lang="en_US">Date Completed:</field-label>
<field-description>Completion Date</field-description>
</field-definition>

      2. Then you need to create a custom field for the due date/ expected completion date field. An example of which would be:

</field-definition>
<field-definition id="customdate1" type="date" required="true" detail="true" viewdefault="on" showlabel="false" field-show-coaching-advisor="false" cascade-update="push-down">
<field-label>Expected completed date</field-label>
<field-label lang="de_DE">Expected completed date</field-label>
<field-label lang="en_US">Expected completed date</field-label>
<field-description>Expected completed date</field-description>
</field-definition>

NOTE: you will have to add the field to the plan layout in order for it to appear in the UI and the user permissions will also have to be defined, for [E], [EM] etc.

 

After the above xml has been configured your UI should look something like this when adding a Custom Learning Activity:

Mandatory completion date 4.jpg

 

When saved it will look like this in the Development Goal, with the field 'Date Completed' still blank:

mandatory completion date 5.jpg

  

Click 'Edit' and set the activity to 'Completed':

mandatory completion date 6.jpg

 

Save, and now the activity will display the date when it was set to completed:

mandatory completion date 7.jpg

Keywords

Required field, date completed, custom learning, learning activity, date, field, completed, due, mandatory, required , KBA , LOD-SF-CDP-LA , Learning Activity Plan (LMS) , How To

Product

SAP SuccessFactors Succession & Development all versions