Symptom
Creation and update of customer projects fails when there are custom fields in a project and values are inconsistent.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Go to app "Plan Customer Projects".
- Change project attributes in plan customer project like project roles or any other attributes like start date, end date which has custom fields with inconsistent data.
- Click on save.
Errors:
"The value of component YY1_XXX_CPR or the key combination is not valid."
"The value BUP001 of component YY1_XXX_CPR or the key combination is not valid."
Cause
This issue is occurring because of the new feature delivered in CFD 2502.1 from professional services projects.This issue is because of the custom fields like YY1_AttorneyConta which are defined as Code list based on CDS view where there are 2 key fields ID and Role but value is filled only for Role field but not ID field.When we define custom fields with this type, system expects the value to be filled for both fields as they are defined as keys in the mapped CDS view but here it is not filled values for all key fields.These validations are added to avoid the data inconsistencies similar to this one as it will cause issues in further stages. In order to have valid data while creating or updating projects these validations are introduced and very much necessary for further actions on the project. One more example is if the custom field is defined as type Email Id and the value for this field in the project is added as ‘John Casen’ which is an inconsistent value and system expects the value as ‘John.casen@sap.com’.
Resolution
To avoid this issue, wherever we have custom fields with combination of Role and ID as keys we have to fill values for all the key fields which are defined should be left as blank. The same must be done for the email id type of the field with the inconsistent value like ‘‘John Casen’ has to be replaced with ‘John.casen@sap.com’. This will resolve the errors and also make data consistent for custom fields in the professional service project application.
Keywords
Customer Projects, plan customer projects, custom fields, CFD_APPL_RUNTIME, 023, feature toggle, HFC06, CFD 2502.1 , KBA , CA-CPD-SS , S/4HANA Public Cloud – Professional Service Projects , Problem