How to handle exceptions in Odata receiver adapter in SAP CPI

3 months ago 21

Hi All,
We person a request to marque aggregate calls to an SAP EAM OData API. We would get a petition with a acceptable of Ids from root strategy past we person to divided those ids into batches and marque telephone to SAP EAM OData API with each batch truthful present the contented is if the information doesn't beryllium for immoderate 1 of the batch the OData  API is throwing objection and the full travel is getting failed and not getting proceeded for the adjacent batch.
Let america presume we get 10 Ids from root and we are splitting them into a batch of 2 ids each truthful we person to marque 5 calls to the OData API. Here for the archetypal 2 batches determination are details successful OData API and it returned the details for those Ids, for the 3rd batch of Ids determination are nary details successful OData Api truthful its throwing objection with 400 Bad petition and the travel is not getting failed and not getting proceeded for the adjacent 2 batches wherever the information exists successful OData API for those acceptable of Ids.

In HTTPS adapter we person an enactment to grip the failures arsenic shown below

pavankalyan_racha_0-1720417960603.png

If we uncheck this we tin way the objection messages to a antithetic way and we tin handle 

Can idiosyncratic assistance maine however to grip the above-mentioned exceptions successful OData receiver Adapter

Thanks & Regards
Pavan Kalyan

Read Entire Article