Skip to Content
0
Aug 23, 2019 at 09:30 AM

$batch not working for Function Import in OData

572 Views

Hi Experts,

We are using function import in our OData (SEGW - POST) which is working fine but now our requirement is to use the function import in Batch. I tried below in gateway:

Below URL in Gateway Client - and used the POST method with the content type:

multipart/mixed; boundary=batch

/sap/opu/odata/sap/Z_****_SRV/$batch
--batch
 Content-Type:
application/http
 Content-Transfer-Encoding:
binary
GET start?XYZ='90/100/2019/03'&ABC='****'&User='****'HTTP/1.1
--batch
 Content-Type:
application/http
 Content-Transfer-Encoding:
binary
GET start?XYZ='90/100/2019/09'&ABC='****'&User='*****'HTTP/1.1
--batch 

I above start is function Import name and XYZ,ABC and User are the import parameters for the function import.

But we are getting 500 error which says "DeReferencing the NULL Reference"

Please help as we are stuck and not able to find anything regarding this.

Thanks,

Best Regrads,

Raina