Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

$Batch with Odata

$
0
0

Hi Experts,

 

When I am using batch am getting the success resposnse(202) for all oprations( read , post , put)but iam not getting response body as well as no entries are created  in table level by Post method.

 

i have followed below steps.

 

1) Redifined Changeset_begin , changeset_end methods.

1.jpg2.jpg3.jpg

Requst Header :

Request Header:

Content-Type    multipart/mixed;boundary=batch

X-CSRF-Token   n5eBImWR4NnoK7aOIP1hKA==

 

Request body:

--batch
Content-Type: multipart/mixed;boundary=changeset


--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary


POST headerSet HTTP/1.1
Content-Type: application/atom+xml
Content-Length:
1400



<?xml version=
"1.0" encoding="utf-8"?>
<entry xml:base=
"http://ITFS1.hq.company.com:8000/sap/opu/odata/sap/ZTEST_DEEP_INSERT1_SRV/" xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<id>http://ITFS1.hq.company.com:8000/sap/opu/odata/sap/ZTEST_DEEP_INSERT1_SRV/headerSet(
'23')</id>
<title type=
"text">headerSet('23')</title>
<updated>2015-05-25T10:05:47Z</updated>
<category term=
"ZTEST_DEEP_INSERT1_SRV.header" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
<link href=
"headerSet('23')" rel="self" title="header"/>
<link href=
"headerSet('23')/itemSet" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/itemSet" type="application/atom+xml;type=feed" title="itemSet"/>
<content type=
"application/xml">
<m:properties>
<d:Id>987</d:Id>
<d:Name>BATCH</d:Name>
</m:properties>
</content>
</entry>
--changeset--
--batch--

 

URL : /sap/opu/odata/sap/ZTEST_DEEP_INSERT1_SRV/$batch

4.jpg

click on enter :

5.jpg6.jpg

no entry created with the id 987.

 

Break-points are also not trigerred in Changeset_begin , changeset_end methods.

 

Please help me to to solve the issue.

Thanks in Advance.


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>