Symptom
The 'TimeSheetEntryCollection' API Workforce Timesheet returns an error message when attempting to load an activity type included in the payload, stating "Activity type is not allowed for the PO item".
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Send a POST request to the Workforce Timesheet API.
- Include an activity type in the payload of the API request.
Cause
The issue arises due to the purchase order having the account assignment category of type 'Project'.
Resolution
- When sending the POST request to the Workforce Timesheet API, do not include the activity type in the payload.
See Also
Refer to the Workforce Timesheet API documentation for more information.
Keywords
SAP S/4HANA Cloud Public Edition, TimeSheetEntryCollection API, Activity Type, Purchase Order, Project, Account Assignment Category. , KBA , CA-TS-S4 , Cross Application Timesheet in S/4HANA , Problem