Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
Showing results for 
Search instead for 
Did you mean: 
SAP CPI offers OData adapter to communicate with OData services. It supports messages with JSON as well as Atom format. The message protocol in CPI can be either OData V2 or OData V4. You can use either OData V2 or OData V4 depending on the OData service you need to communicate with.  More details on the difference between V2 and V4 is available at -

This blogs explains the procedure to process batch processing (using operation POST ) in OData V4 service receiver OData Adapter.

Configure the adapter as per the instruction -

In OData V2, batch processing can be enabled using the below option:

However with OData V4 this option is not available. In order to process the request SAP has provided the below operations:

In order to send batch data the Operation ‘Batch Processing ($batch)’ needs to be selected.

 After selecting the operation, add either a 'Changeset' or a 'Batchset'. I have added 'Batchset' and selected the entity 'Logs' for this scenario:

This will generate an EDMX file, the structure of the payload looks like this:

The field <method> denotes the operation to be performed, in this scenario we will be using ‘POST’. Provide the entity name in the field <uri>,  in this case it will be ‘Logs’.

The remaining fields can be mapped as per your requirement. It is mandatory to have at least one 'batchSet1' in a batch request payload. Note that structure should looks something like this after the mapping:

Deploy the iflow and trigger a message, this would post all the records in a single call.

Labels in this area