A user has multiple rows of data for a custom MDF in Manage Data. When a document is generated, data from the first row is getting captured. The requirement is to have data from all the rows to the generated document.
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
SuccessFactors Employee Central: Document Generation
Reproducing the Issue
A custom MDF object "Tuituion Reimbursement" has a child object "Classes". In the example, the user has three entries for Classes:
The template is configured as following:
The generated document contains data from only the first row:
Note that data from the second and third row are not in the generated document.
Incorrect mapping configuration.
In the template the table has placeholders in multiple rows. Hence, they are considered static which will fetch only the first value available.
For the placeholders to fetch multiple values in a table, all the placeholders should be in the same row. You can keep the first row for header and the second row will contain its respective placeholders. This would fetch the multiple values if present.
The template should look like:
Now, the generated document is:
Dynamic , KBA , LOD-SF-EC-DOC , Document Generation , Problem