You're not able to use class /cpd/cl_sc_badi_utility_1 inside Custom Logic (business context: Engagement Project, BAdI Description: Generate Project IDs).
SAP S/4HANA Cloud
Reproducing the Issue
- Create business context "Engagement project".
- Use class "/CPD/CL_SC_BADI_UTILITY_1"
Class "/cpd/cl_sc_badi_utility" is deprecated. It was replaced by a new class "/cpd/cl_sc_badi_utility_1".
However, it is not possible to directly replace /cpd/cl_sc_badi_utility with /cpd/cl_sc_badi_utility_1.
Inside the Custom Logic app editor for the implementation, you can click on the example button (upper right corner).
The example shows how to make use of this class:
*--Instantiate the Custom Logic Utility Class
utility_class_instance = DATA(utility_class_instance) ).
*--Invoke the method to generate the Project ID
project_id = ls_projectid-engagementproject ).
class, /cpd/cl_sc_badi_utility_1, custom logic, engagement Project, Generate Project IDs, custom logic, an instance of a class /CPD/CL_SC_BADI_UTILITY_1 cannot be created outside a class , KBA , CA-CPD-SS , S/4HANA Professional Services Cloud - CPM , Problem