cancel
Showing results for 
Search instead for 
Did you mean: 

Can We Use an OData Client in Node.js for Custom SAP $batch (PUT + POST) with multipart/mixed?

VaibhavDesai
Discoverer
0 Kudos
80

Hi Experts,

We’re working on a Node.js(CAP) backend integration with a custom SAP OData service (ZP_MM_XXXXXXXXX). Our requirement is to:

Send a $batch request

Which includes multiple PUT operations (to update ASN items)

Followed by a POST to /to_shipheaddet (to finalize the delivery creation)

All wrapped inside a changeset for transactional behavior

We currently build the multipart/mixed batch body manually using raw fetch or axios. The format closely mimics what SAP GUI or Gateway Client generates — with nested boundaries, embedded HTTP headers, and CRLF handling.

So far, this works perfectly.
So now my question is,

Can this be done using an OData client in Node.js? For example:

simple-odata-client

odata-client

@sap-cloud-sdk 

If not directly supported — is there a known workaround?
E.g., using executeHttpRequestRaw() with custom headers?
@sap @cap @NodeJs @BTP @SAP 

Accepted Solutions (0)

Answers (0)