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

Batch Processing in Gateway Client Not Working

$
0
0

Hi Team,

 

I have re-defined the methods Change Begin set and Change end set methods.

 

When I executed the Gateway, I am able to see the Status 202 after execution. But the data is not getting created.

 

When I am executing the service without batch, Its working perfectly. Please let me know after status 202, is there any process I have to do to execute the service.

 

I have a requirement, after successful execution of all Materials creation in a batch I have to call Commit or Roll back.

 

Let me know where can i call the BAPI COMMIT or BAPI Roll back.

 

If any of material fail, nothing has to be created. I have to allow only if every thing is success.

 

Please let me know what I am missing and let me know what else I have to do to achieve this requirement.

 

 

Batch Processing.png

 

Batch Code:

 

--batch

Content-Type: multipart/mixed; boundary=changeset

 

 

 

 

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

 

 

 

 

POST Variant_createSet HTTP/1.1

Content-Type: application/atom+xml

Content-Length: 588

 

 

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<entry xml:base="http://sxxxh1pute01.hightest.awstest.net:8001/sap/opu/odata/sap/ZXXX_TESTKPIT_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://sxxxh1pute01.hightest.awstest.net:8001/sap/opu/odata/sap/ZXXX_TESTKPIT_SRV/Variant_createSet</id>

<title type="text">Variant_createSet</title>

<category term="ZXXX_TESTKPIT_SRV.Variant_create" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>

<link href="Variant_createSet" rel="self" title="Variant_create"/>

<content type="application/xml">

  <m:properties>

   <d:Matnr>1758848</d:Matnr>

   <d:Satnr>1758848</d:Satnr>

   <d:Charprof>Z005</d:Charprof>

   <d:Char_name>Z032</d:Char_name>

   <d:Char_value>38</d:Char_value>

  </m:properties>

</content>

</entry>

 

 

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

 

 

 

 

POST Variant_createSet HTTP/1.1

Content-Type: application/atom+xml

Content-Length: 588

 

 

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<entry xml:base="http://sxxxh1pute01.hightest.awstest.net:8001/sap/opu/odata/sap/ZXXX_TESTKPIT_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://sxxxh1pute01.hightest.awstest.net:8001/sap/opu/odata/sap/ZXXX_TESTKPIT_SRV/Variant_createSet</id>

<title type="text">Variant_createSet</title>

<category term="ZXXX_TESTKPIT_SRV.Variant_create" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>

<link href="Variant_createSet" rel="self" title="Variant_create"/>

<content type="application/xml">

  <m:properties>

   <d:Matnr>1758848</d:Matnr>

   <d:Satnr>1758848</d:Satnr>

   <d:Charprof>Z005</d:Charprof>

   <d:Char_name>Z032</d:Char_name>

   <d:Char_value>37</d:Char_value>

  </m:properties>

</content>

</entry>

 

 

--batch--

 

 

Thanks


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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