cancel
Showing results for 
Search instead for 
Did you mean: 

Generate Project IDs

0 Kudos

Hello,

In cloud as we have provision for Generate Project IDs using BADI, So what is the feasibility to enhance it?

As i need to maintain project ID Customer Specific automatically. So can this be achieved through this Enhancement ?

Thanks & Regards

Accepted Solutions (1)

Accepted Solutions (1)

ana_goncalves
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Mayur,

I'm not sure I understand your question 100%, but BAdI Generate Project IDs does indeed allow you to generate IDs automatically for both customer and internal projects, following the naming logic you define.

Kind regards,

Ana

NikolaiE
Advisor
Advisor
0 Kudos

Hi Mayur,

like anaisa0 mentioned you can use the BAdI: Generate Project IDs to activate the automatic generation of IDs for customer and internal projects. You can also decide which parameters influence the naming of the project ID, e.g. customer.

Please find a short BAdI description below:

During runtime, the following components are available in a structure (as a changing parameter) to generate a project ID up to 16 alphanumeric characters:

engagementprojectname - Project Name

customer - Customer ID

customername - Customer Name

engagementprojectserviceorg - Service Organization ID

engmtprojectserviceorgname - Service Organization Name

It is recommended that you use only the components with IDs to auto-generate a project ID (due to the allowed length of a project ID).

Please note the following when implementing a custom logic:

For customer projects, the custom logic is invoked when you select a customer. In addition, if you wish to influence the ID by the project name, then your logic should consider this input before generating a project ID.

For internal projects, the custom logic is invoked as soon as you launch the app.

Example

In the sample logic (pre-delivered with S/4HANA Cloud), the system generates a project ID based on the last generated number.

However, you can write your own logic to influence the project ID (for example, based on the ID of the customer or the service organization).

Best regards,

Nikolai

Vivek0459
Participant
0 Kudos

Hi nikolai.emling anaisa0 ,

I have implemented BADI: Generate Project IDs and its working as expected but only issue i have here is Project ID is mandatory field.

Here comes my scenario - I have a legacy system already in place where project was being created before SAP , now i am integrating that system with SAP and using project Create API "Commercial Project - Create, Update" and Communication Scenario: Commercial Project Integration (SAP_COM_0054 ) for creating project .

If i don't provide project ID to API i receive a response "Please make an entry in all mandatory fields." and if i pass some value then my BADI is not executed .

Is there any way where i can use API or pass dummy value to API and BADI works together so that both system remains in sync .

Thanks

ana_goncalves
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi vivekkumar.singh2,

Currently, the BAdI can only be triggered from the Fiori App. Any workarounds such as passing dummy values in the API wouldn't work as the API wouldn't be able to differentiate a dummy ID from an actual ID.

Kind regards,

Ana

Vivek0459
Participant
0 Kudos

Hi anaisa0 ,

Thanks for the confirmation but don't you think mine is a genuine requirement , because any client who has implemented that BADI for auto project id generation then if he integrate any legacy system with S4 then API will bypass BADI implementation which may lead to inconsistency in project id generation between both system ?

Thanks

ana_goncalves
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi vivekkumar.singh2,

I would suggest you to create an incident to follow up on this.

Kind regards,

Ana

Luisa_D_
Explorer
0 Kudos

Hi Experts!

As far as I understand, this BAdi is only applicable to customer and internal projects.

Is there an analogous way of automatically generating the project ID using a definable ID convention for projects in the EPPM, e.g. Investment or Overhead Projects?

A thousand thanks in advance!

ana_goncalves
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi tkooooo,

Apologies for the delay!

For EPPM, the project IDs are configurable through SSCUI, configuration step Define Project Coding Mask.

Kind regards,

Ana

Answers (3)

Answers (3)

Sycntegral
Active Participant
0 Kudos

Hi @anaisa0

I see the App "Plan Customer Projects" is only available for S4 Hana cloud version .

We run S42020 on premise - when this App will be available for the on premise installation?

What is the alternative now to Generate Project ID, which will "fly" to SAP Sales Order?

https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/#/detail/Apps('F0719')/S24

former_member620704
Participant
0 Kudos

Hi Experts,

I have implemented BADI: Generate Project IDs and its working when project is created manually (by App "Plan Customer Project") but getting an error "Please make an entry in all mandatory fields" when i try to create project using ODATA API (SC_PROJ_ENGMT_CREATE_UPD_SRV/ProjectSet).

Is SAP resolved this issue or please let me know if there is any fix for this issue.

Thanks,

Swetha

ana_goncalves
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi isrilakshmi,

Apologies for the delay!

As mentioned in this thread, the BAdI can only be triggered from the Fiori App. It doesn't work when creating projects via API.

Kind regards,

Ana

0 Kudos

Hello Nikolai,

Thank you for the detailed explanation.

This looks like it meets my requirement, Let me check with proposed solution and will update you if any difficulties is faced.

Thanks & Regards,

Mayur