SAP Knowledge Base Article - Public

3571114 - Issue with Loading Activity Type via 'TimeSheetEntryCollection' API in SAP S/4HANA Cloud Public Edition

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

  1. Send a POST request to the Workforce Timesheet API.
  2. 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

  1. 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

Product

SAP S/4HANA Cloud Public Edition all versions