cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to get UUID of WBS element using API in s4hana cloud

ayechan
Participant
0 Kudos
410

Hi,

I would like to create Project Demand (Resources) using external Web Service API.

The API I used is this one.

ayechan_0-1724660699369.png

And in this API, one of the mandatory field WBS element is needed to enter as UUID value (ReferencedObjectUUID).

ayechan_1-1724660833592.png

So, to able to retrieve UUID of WBS element, we will need to use WBS element API and WBS element APIs are depracted.

ayechan_2-1724661281808.png

So, I used Enterprise Project API instead and able to retrieve WBS element UUID of Project Element ID by using /A_EnterpriseProjectElement entity with get method.

 

ayechan_4-1724661443093.png

But the problem here is that the API can retrieve only UUID of Project Element IDs as WBS element UUID.

ayechan_5-1724661698267.png

*Green highlighted one is Parent Project ID and yellow highlighted are Project Element IDs.

And when I want to choose Parent Project ID (Test260801) as WBS element, the API can only show Parent Project UUID and cannot retrieve UUID of that Parent Project ID as WBS element UUID.

And when I enter the Parent Project UUID in ReferencedObjectUUID field, "WBS element does not exist" error occurs.

Parent Project UUID

ayechan_6-1724662212220.png

Error

ayechan_7-1724662229017.png

So, I would like to know that how can I retrieve UUID of Parent Project ID as WBS element UUID using API (or) is there any workaround that is possible to do so?

If you have any experience (or) idea about this case, could you please kindly answer for me.

 

Thank you in advance.

Best Regards,

Aye Chan

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

CarlosMoreira
Explorer
0 Kudos

Hello, could you find a solution for this? I am in exactly the same spot as you.
Thanks

ayechan
Participant
0 Kudos

Hi @CarlosMoreira,

In my case, this is because of the API url that I used.

Could you please try by using the following url that includes ;v=0002?

https://yourtenant/sap/opu/odata/sap/API_ENTERPRISE_PROJECT_SRV;v=0002/A_EnterpriseProjectElement

At the time I checked, that url cannot be run in soapui.

It can be run in Postman and I get the UUID I required.

Hope this will helpful for you too!