cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Public Cloud integration with SAP CPI through an API

kunalchauhan
Discoverer
0 Kudos

Hello guys,

I am trying to fetch SalesOrder data from SAP public cloud with the help of an API that I found in SAP API Hub that will be called from SAP CPI I-Flow.

 I followed this blog : https://community.sap.com/t5/enterprise-resource-planning-blogs-by-sap/posting-sales-orders-into-s-4...

 

But I am getting a error in the Request Reply part , the error is 

com.sap.gateway.core.ip.component.odata.exception.OsciException: An exception of type 'WstxUnexpectedCharException' occurred., cause: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '&' (code 38) (expected a name start character) 

at [row,col {unknown-source}]: [1,182]
 
 
kunalchauhan_0-1711702602916.png

 

kunalchauhan_2-1711703115251.png

 

Please provide some assistance.

 

Thanks,

Kunal Chauhan

SAP BTP, ABAP environment  SAP Integration Suite OData API SAP S/4HANA Public Cloud 

 

bdBais
Explorer
0 Kudos
try with postman and next with HTTP Adapter.

Accepted Solutions (0)

Answers (2)

Answers (2)

PavanKumar
Active Contributor
0 Kudos

Hi Kunal,

check this note: 2510796 - Error: OData Receiver Adapter [The entity name must immediately follow the '&' in the entity reference]

 

 

Regards

Pavan Kumar D

 

carlosrpereira
Explorer
0 Kudos

It´s waiting for a field name value and not by "&" in your request parameters for the ODATA service. Please revise the paramters that you are calling the ODATA service.

Remember basically the $Filter just contain field names and not "&", "&" is used to identify query parameters in an HTTP call like "&$filter=(your filter parameters)&$format=application/xml" 

kunalchauhan
Discoverer
0 Kudos

Thanks for the reply Carlos, but we are not passing '&' in parameters

kunalchauhan_0-1711955472384.png

Thanks,

Kunal