Symptom
When creating or updating workforce data using the API WORKFORCEPERSONMASTERDATAREPLI, the following error message appears in the response:
<LogItem>
<TypeID>000(010)</TypeID>
<SeverityCode>E</SeverityCode>
<Note>Worker: XXXX - Work Order is mandatory.</Note>
</LogItem>
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Configure the communication arrangement SAP_COM_0301. For more information about creating communication arrangements, refer to Communication Arrangement.
- Use the API WORKFORCEPERSONMASTERDATAREPLI to upload the HR master data.
- In the WorkAgreementInformation section, specify the PersonWorkAgreementType as 3 (Service Performer).
- Post the API.
- See the response.
Cause
The work order details were not entered.
Resolution
The work order details are mandatory for a service performer. Add the missing WorkOrder node, specifying the parameters ValidityPeriod and Supplier and post the API again.
See Also
KBA 2646803 - How to maintain employees data in an SAP S/4HANA Cloud Public Edition
1FD - Employee Integration - SAP S/4HANA Enablement
SAP Help Portal - Replicate Basic Master Data for Workforce from External HR Systems > WorkOrder
Keywords
API, Service Performer, Work Order is mandatory, work order, workorder, WORKFORCEPERSONMASTERDATAREPLI, Replicate Basic Master Data for Workforce from External HR Systems, SAP_COM_0301 , KBA , CA-WFD-INT , S/4HANA Cloud Workforce Domain Integration , How To