Skip to Content
0

Resource not found for Segment 'XXXXXXX'

Feb 07 at 03:45 PM

410

avatar image
Former Member

Hi Experts,

I am trying to create a OData service for retrieving salesorder Details.

However, I am not able to rectify the error "Resource not found for Segment 'XXXXXXX' .

The Metadata is getting loaded correctly .I have done the necessary coding in GET_ENTITY as well. I am specifying salesdocument Number in the URI as well. But still I am not able to figure it out.

i tried below both but no use.

http://<hostname>:<port>/sap/opu/odata/sap/ZGW_SALES_SRV/sales_orderSet(Salesdocument='1')

http://<hostname>:<port>/sap/opu/odata/sap/ZGW_SALES_SRV/sales_orderSet('Salesdocument'='1')

Please help me.

xml version.

- http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> /IWBEP/CM_MGW_RT/020 Resource not found for segment 'sales_order'. - - /SAP/ ZGW_SALES_SRV 0001 F80B44E8584F0080E005A55871D32B40 - See SAP Note 1797736 for error analysis ( https://service.sap.com/sap/support/notes/1797736)> - - /IWBEP/CX_MGW_BUSI_EXCEPTION Resource not found for segment 'sales_order' error

Best Regards,

Karanam

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Karthik Gali Feb 07 at 03:56 PM
0

Check the name of the entity and Property for any typo mistakes (Case sensitive).

Go to service maintenance transaction and do the refresh catalog and load the metadata after any changes.

Share
10 |10000 characters needed characters left characters exceeded
Tarun Sharma Feb 13 at 10:09 AM
0

I see that second URL is not correct for you, however first one is correct.

/sap/opu/odata/sap/ZGW_SALES_SRV/sales_orderSet(Salesdocument='1')

This error generally means, you don’t have record existing in system for your query.

Check on below points-

1. do you have record existing for sales document = 1

2. have you used conversion exist correctly, preceding zero's maybe causing this issue.

3. Try to put correct sales document number with required zeros

4. debug in corresponding get entity method, and check where it is failing.

Regards,

Tarun

Share
10 |10000 characters needed characters left characters exceeded
Ankit Maskara
Feb 15 at 03:52 PM
0

metadata please

Share
10 |10000 characters needed characters left characters exceeded