Skip to Content
0

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

May 03 at 11:18 AM

71

avatar image

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.

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

1 Answer

Morten Wittrock
May 03 at 11:22 AM
0

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

Show 5 Share
10 |10000 characters needed characters left characters exceeded

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?

0

Hi Praveen

A screenshot of your channel configuration would be helpful.

Regards,

Morten

0

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.

0

Hello again

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

Regards,

Morten

0

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

Regards,

Morten

0