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

Batch create,update,delete Error(See SAP Note 1797736-Default changeset implementation allows only one operation)

$
0
0

Hi Experts,

 

I am trying to create multiple records using batch create but, Records are not getting created.. I am getting following error,

 

BatchError.PNG

 

This is at  HTTP request body.

 

 

--batch

Content-Type: multipart/mixed; boundary=changeset

 

 

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

 

 

POST EmpDetailsSet HTTP/1.1

Content-Type: application/atom+xml

Content-Length: 588

 

 

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

<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"

xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"

xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<atom:content type="application/xml">

<m:properties>

<d:DETAILS m:type="ZEMPLOYEE_INFO_SRV.Details">

<d:Street1>Pai krishna</d:Street1>

<d:Street2>Bangalore</d:Street2>

<d:City>BANGALORE</d:City>

<d:Country>INDIA</d:Country>

</d:DETAILS>

<d:EMP_ID>76</d:EMP_ID>

<d:NAME>ARSHAD SHAIKH CREATE</d:NAME>

<d:ADDRESS>BANGALORE</d:ADDRESS>

<d:SALARY>100000000</d:SALARY>

</m:properties>

</atom:content>

</atom:entry>

 

 

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

 

 

POST EmpDetailsSet HTTP/1.1

Content-Type: application/atom+xml

Content-Length: 588

 

 

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

<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"

xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"

xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<atom:content type="application/xml">

<m:properties>

         <d:DETAILS m:type="ZEMPLOYEE_INFO_SRV.Details">

         <d:Street1>Pai t</d:Street1>

         <d:Street2>KR </d:Street2>

         <d:City>BANGALORE</d:City>

         <d:Country>INDIA</d:Country>

         </d:DETAILS>

         <d:EMP_ID>77</d:EMP_ID>

         <d:NAME>LK SONI CREATE</d:NAME>

         <d:ADDRESS>BANGALORE</d:ADDRESS>

         <d:SALARY>100000000</d:SALARY>

</m:properties>

</atom:content>

</atom:entry>

 

 

 

--changeset--

--batch—

 

Thanks in advance.

 

Regards,

Arshad.


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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