Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Is there an encoding problem using OData services?

$
0
0

Hi all,

 

I have an encoding problem while sending OData requests using SAP Gateway (not using SUP). I have written a services which returns the details of an order. That order is maintained in the ERP system.  I have also double checked that the order exists.

 

Working request -- returns the details of the order:

    http://<host>:8000.sap/opu/odata/sap/LLG_SAP_PM_INTEGRATION/mobile_orders('000000819740')

 

Failing request -- just returning error messages:

    http://<host>:8000/sap/opu/odata/sap/LLG_SAP_PM_INTEGRATION/mobile_orders%28%27000000819740%27%29

 

 

I get the following error messages:

 

  • The metadata entity with the internal ID '' has not been found. This means that the request URL or the metadata definition in BEP (or Gateway) contains an error.
  • Resource mobile_orders("000000819740") not defined in Metadata
  • Resource not found for the segment "mobile_orders%28%27000000819740%27%29"

 

 

The metadata looks like:

     <EntityType Name="mobile_order" sap:content-version="1">
        <Key>
           <PropertyRef Name="orderid"/>
        </Key>
        <Property Name="person" Type="Edm.Int16" Nullable="false" sap:label="Int2"/>
        <Property Name="ref_equipment" Type="Edm.String" Nullable="false" MaxLength="18"/>
        <Property Name="ref_funcloc" Type="Edm.String" Nullable="false" MaxLength="30"/>
        <Property Name="description" Type="Edm.String" Nullable="false" MaxLength="40"/>
        <Property Name="orderid" Type="Edm.String" Nullable="false" MaxLength="12"/>
        <NavigationProperty Name="mobile_equipment" Relationship="LLG_SAP_PM_INTEGRATION.mobile_ordermobile_equipment" FromRole="FromRole_mobile_ordermobile_equipment" ToRole="ToRole_mobile_ordermobile_equipment"/>
        <NavigationProperty Name="mobile_operation" Relationship="LLG_SAP_PM_INTEGRATION.mobile_ordermobile_operation" FromRole="FromRole_mobile_ordermobile_operation" ToRole="ToRole_mobile_ordermobile_operation"/>
        <NavigationProperty Name="mobile_funcloc" Relationship="LLG_SAP_PM_INTEGRATION.order_funclo" FromRole="FromRole_order_funclo" ToRole="ToRole_order_funclo"/>
     </EntityType>

 

 

My Gateway system is based on SP Level 0006.

 

Many thanks for your help,

 

Andreas


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>