Automatic Generation of Project IDs using BAdI in ...
Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
Here you will learn how to set up the automatic and sequential Project IDs while creating a Project in SAP S/4HANA Cloud Professional Services.
Default Functionality:
With given functionality of SAP S/4HANA Cloud, Customers can enter alpha numeric values manually for their Internal and Customer Projects. But a unique number has to be maintained every time a new project is created by a Customer.
Moreover, if a customer is looking for sequential Project IDs, this might be a difficult task to manually enter them in sequence.
Customization:
In order to address the above requirement, SAP S/4HANA Cloud provides a BAdI which can be implemented to generate the sequential project IDs automatically each time a project is created.
This BAdI can generate sequential Project IDs for both Customer and Internal projects. And we may define the unique identifier as a prefix to differentiate among the type of projects. In my example, I have a prefix ‘I’ for Internal Projects and ‘C’ for Customer Projects.
Let’s go through the implementation of this BAdI:
Step1: Go to Custom Fields and Logic App, navigate to Custom Logic tab and Create New Enhanced Implementation.
Step2: Select Business Context – ‘Engagement Project’, BAdI Description – ‘Generate Project IDs’ and give a description.
Step 3: Insert the following code snippet in logic:
thank you for sharing! I used the same way like you did. In release 2008 the class you refer to is getting deprecated and the one who they refer to (/cpd/cl_sc_badi_utility_1) is not allowed to get used outside the class.
Has there been any solution to Cedric's question? I am currently facing the same issue where /cpd/cl_sc_badi_utility is deprecated and /cpd/cl_sc_badi_utility_1 is not allowed to get used outside the class.
Regards
Haaroon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.