Symptom
Customer has either BAdI Project Determination or Generate Project IDs implemented.
In some occasions the IDs are skipping one value.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Go to plan customer projects.
- Create a project to serve as reference.
- Click create again, fill the fields and then cancel.
- Now click create and create the project.
- The ID will have skipped by 1.
Cause
Standard behavior of the sample code.
The sample code uses a number range object (/CPD/FPOID). On every execution it generates next available number in sequence.
If it is not used it cannot be retrieved back on next execution.
Resolution
Customer may implement a logic using the released CDS views, for example, I_EngagementProject, to get the next available ID.
Keywords
custom code, project ID, Custom Logic, Create Customer Projects, F0719, /CPD/FPOID, /cpd/cl_sc_badi_utility, generate_project_id , KBA , CA-CPD-SS , S/4HANA Public Cloud – Professional Service Projects , Problem