Symptom
An employee has multiple paycomponents,
For example, under employment information compensation portlet the payComp are shown in below sequence for this sample employee:
If we generate a document which has mapping for payComponent, the payComponents shown in document is random and do not follow sequence as maintained in employment information page:
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: Document Generation
Reproducing the Issue
Configure Document mapping and generate document. Notice that the sequence of payComponents generated in document is random
Document template mapping:
Document template:
Cause
As confirmed with Product engineering, this is an expected behavior and we cannot control how the payComponents are put to document every time it is generated
There is no code designed to determine and execute the sequence as per employment information page.
PS: Similarly, for an MDF object having multiple child records on same date, there is no order by clause on the child MDF records, they are fetched in random order.
Resolution
This is an expected behavior. For any changes, do request for enhancement as mentioned in KBA-2090228
Keywords
Document generation, Document template mapping, Letter template, sequence of paycomponents, pay components, pay comp, order, sequence, MDF, child, document. , KBA , LOD-SF-EC-DOC , Document Generation , LOD-SF-EC , Employee Central , Product Enhancement