cancel
Showing results for 
Search instead for 
Did you mean: 

How to Build receiver endpoint dynamically Odata- CPI

former_member802088
Discoverer
0 Kudos

Dear integration community,

I have tried to create created a dynamic oData HTTPS -->CPI-->Odata iflow as follows.

Sender adapter: /API_BUSINESS_PARTNER/*

Receiver HTTP adapter: http://mydev:123/sap/opu/odata/sap/${property.url}

Where property.url is the exchange property ${header.CamelHttpPath} set in a content modifier step before the adapter call.

The ideia is to have a single iflow where a deep insert can be done, and then changes as well (as I did not find a way to carry out the deep modification using a single post call) :

1) Initial POST /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner


2) PATCH /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartnerAddress(BusinessPartner='100123',AddressID='12393')


3) Another Patch /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_AddressEmailAddress(AddressID='12393',Person='222',OrdinalNumber='1')


However, although the full url is built apparently successfully in CPI, the uri always gets duplicated in the abap layer:

* For example, if I do a post https://mycpi.com/http/API_BUSINESS_PARTNER/test

In transaction /n/IWFND/ERROR_LOG, i see ...REQUEST_URI /sap/opu/odata/sap/test/test

Any ideia why this happens or what I am doing wrong ?Thank you so much.

Accepted Solutions (0)

Answers (0)