cancel
Showing results for 
Search instead for 
Did you mean: 

How to query Odata service through HTTP receiver adapter from SAP HCI?

0 Kudos
468

Hi Experts,

Can anyone explain me how to query a Odata service through HTTP adapter from sap HCI? I am expecting the similar way how we query a Odata service from Postman tool.

View Entire Topic
MortenWittrock
Active Contributor
0 Kudos

Hi Praveen

You can call an OData service using an HTTP receiver channel, or you could use the OData receiver channel, which guides you through creating the query in a wizard-style interface.

Regards,

Morten

0 Kudos

Hi Morten,

I tried using HTTP adapter for calling Odata service and got the below error.

An internal server error occured: Cannot analyze the Exchange.HTTP_PATH header, due to: Cannot analyze the Exchange.HTTP_PATH header, due to: cannot find the right HTTP_BASE_URI on the exchange: Exchange[ID-vsa3687325-52972-1523677357370-406-2] on the exchange: Exchange[ID-vsa3687325-52972-1523677357370-406-2]. The MPL ID for the failed message is : AFrq-k4Xl0ogIZrQ8d7y6E_JkM_p For more details please check tail log.

Can you help to identify what was the issue?

Do you know any blog on how to use HTTP receiver adapter for Odata in HCI?

MortenWittrock
Active Contributor
0 Kudos

Hi Praveen

A screenshot of your channel configuration would be helpful.

Regards,

Morten

0 Kudos

receiver-adapter-details.jpgHi Morten,

Please find the screenshot and the details of receiver adapter

Address: https://my*******-api.s4hana.ondemand.com/sap/opu/odata/SAP/API_MKT_EXPORT_DEFINITION_SRV(CampaignID='0000000027',FileName='EYN100CPG-0000000027-1-1-TestFile-20180502121147')

Kindly let me know if i am using anything wrong here.

MortenWittrock
Active Contributor
0 Kudos

Hello again

Move /$value to the end of the address; it's not a query parameter.

Regards,

Morten

MortenWittrock
Active Contributor
0 Kudos

Also, you seem to be missing the /ObjectFiles resource path from your URL.

Regards,

Morten