Symptom
When querying employee data using web service QueryEmployeeIn, three instances of Employment Data for this employee are returned. but EmploymentData which is related to different work agreement data shares the same ChangeStateID.
Environment
SAP Business ByDesign
Cause
From Employment point of view, there’s no change in Country of Employment and Company for first and third instances of Employment Data for this employee, hence these records share the same Employment instance. Therefore, the ChangeStateID and UUID are coming same for the first and third records in the query response as well.
This is working as per the current design.
Resolution
As a workaround, you can use the ChangeStateID for WorkAgreementData instead.
Keywords
EmploymentData; WorkAgreementData; QueryEmployeeIn; ChangeStateID , KBA , AP-BP-EE , Employee , Problem