SAP Knowledge Base Article - Public

3520548 - oData V4 API doesn't allow to overrule the cost center category configuration for turned on locks - SAP S/4HANA Cloud Public Edition

Symptom

Field such as "IsBlockedForRevenuePosting" ignores the value of false for 'Post' but works for 'Patch' in API SAP_COM_0943. 

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

1. Post API SAP_COM_0943 with value false of field "IsBlockedForRevenuePosting" for an existing cost center category. 
2. Confirm the result of field "IsBlockedForRevenuePosting" is true

Cause

oData V4 API doesn't allow to overrule the cost center category configuration for turned on locks. Hence the lock turned off and initial value are the same value, it is not possible to distinguish, if the lock should be turned off, or value was not provided and default category configuration should be applied. 

Resolution

Workarounds:

  1. If in many cost centers should be the default category configuration adjusted, then to create new cost center category, or adjust the existing one.
  2. If it is a rare situation, then the cost center lock configuration must be changed with second update request.  

Keywords

oData V4 API, SAP_COM_0943, IsBlockedForRevenuePosting, Post, Patch, False, True, Cost Center Category , KBA , CO-FIO-CCA-CF , Configuration , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions