cancel
Showing results for 
Search instead for 
Did you mean: 

$batch not working for Function Import in OData

raina_goyal
Participant
0 Kudos

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

View Entire Topic
HemendraS
Participant
0 Kudos

Hi Raina,

Please do below correction, I also made mistake

Spacing in rows 0-1-1-2-1-2 and followed by

--changeset--

--batch--


I hope it will work.

Thanks,

Hemendra