cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello, getting Resource not found for segment ''. when we run sap/opu/odata/SAP/SRA004_SRV/Travels('2000000155').

For some reason, this GET_ENTITY call works fine in Fiori itself, but when testing the call from gateway client or browser we get that error or sometimes Resource not found for segment 'Travel'.

Tried clearing cache and loading metadata, but that didn't help.

sap/opu/odata/SAP/SRA004_SRV/Travels comes back 200, so it can see the resource.


This also happens in our Z extension of the project, and for any new GET_ENTITY we make in that project.


Any ideas?

0 Likes
View Entire Topic
kammaje_cis
SAP Mentor
SAP Mentor
0 Likes

Dave,

In method GET_ENTITY if it does not find any relevant data, how are populating the return structure? I guess you have to send the key atleast back.

What I mean is

When you call sap/opu/odata/SAP/SRA004_SRV/Travels('2000000155')

If the key 2000000155 has valid values to be returned, then you will get the data.

But if you call

sap/opu/odata/SAP/SRA004_SRV/Travels('12345678')

You would get 'Resource not found for segment 'Travel'.

Regards

Krishna

dave_price
Participant
0 Likes

Thanks Krishna, it is not a data issue, the same call works from Fiori, but not from gateway client or browser.