Symptom
If field UnitQuantity is 0, it is unable to update the name of Service Based WorkPackage via API /cpd/SC_PROJ_ENGMT_CREATE_UPD_SRV.
Environment
SAP S/4HANA Cloud
Reproducing the Issue
- PATCH:
/sap/opu/odata/cpd/SC_PROJ_ENGMT_CREATE_UPD_SRV/WorkPackageSet(ProjectID='XXXXXX',WorkPackageID='XXXXX',WorkPackageName='XXXXX') - Payload:
{ "Description": "XXXXX"}
Error occurs as below.
Code:/CPD/SS_MESSAGES/420
Message: Enter a valid quantity without decimals.
Resolution
It is standard behavior in CPM API to check the UnitQuantity with 0 and return error message.
We cannot update description of Service Based WorkPackage alone via this API if quantity is 0.
Keywords
/cpd/SC_PROJ_ENGMT_CREATE_UPD_SRV, Service Based, quantity, 0, Enter a valid quantity without decimals, /CPD/SS_MESSAGES/420, description, customer project, CPM , KBA , CA-CPD-SS , S/4HANA Public Cloud – Professional Service Projects , Bug Filed
Product
SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions