Skip to Content
avatar image
Former Member

Resource not found for Segment 'XXXXXXX'

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Feb 07 at 03:56 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 13 at 10:09 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 15 at 03:52 PM

    metadata please

    Add comment
    10|10000 characters needed characters exceeded