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

CREATE_DEEP_ENTITY issue using $batch

$
0
0

Hello Experts,

 

While invoking CREATE_DEEP_ENTITY using $batch, we are facing one issue that breakpoint is not getting stopped at Redefine method.


We have redefine below method. The idea is to do CREATE_DEEP_ENTITY using $batch sending work order header and its Operations.

Capture1.JPG

Request Body which we are sending is as below:

 

--batch_709b8b9352ac4342a0efb1e012d_1

content-type: multipart/mixed; boundary=changeset_709b8b9352ac4342a0efb1e012d_2

 

--changeset_709b8b9352ac4342a0efb1e012d_2

content-type: application/http

content-transfer-encoding: binary

content-id: 1

 

POST WoHeaderSet HTTP/1.1

Content-Type: application/json

Accept: application/json;q=1, application/atom+xml;q=0.5

 

{"Aufnr":"123","Auart":"PM01","Autyp":"30","Ktext":"New WO frm Device"}

--changeset_709b8b9352ac4342a0efb1e012d_2

content-type: application/http

content-transfer-encoding: binary

 

POST $1/NavOpera HTTP/1.1

Content-Type: application/json

Accept: application/json;q=1, application/atom+xml;q=0.5

 

{"Aufnr":"123","Aufpl":"1000000092","Aplzl":"00000001","Vornr":"0010","Werks":"OD99","Ltxa1":"New opr"}

--changeset_709b8b9352ac4342a0efb1e012d_2--

 

--batch_709b8b9352ac4342a0efb1e012d_1--

 

But the problem is code is going into Standard Changset method and throwing us exception :"Default changeset implementation allows only one operation”.

 

--489CBE8C201BBF799E2DF4B92A3548D80

Content-Type: application/http

Content-Length: 1174

content-transfer-encoding: binary

 

HTTP/1.1 500 Internal Server Error

Content-Type: application/json;charset=utf-8

Content-Length: 945

location: http://XXXXXXXXXXXXXXXXXXXXXXXXXXXXX/WoHeaderSet('')

dataserviceversion: 1.0

 

{"error":{"code":"/IWBEP/CM_MGW_RT/053","message":{"lang":"en","value":"Default changeset implementation allows only one operation."},"innererror":{"application":{"component_id":"","service_namespace":"/SAP/","service_id":"ZODS_WORKMANAGER_TEST_SRV_01","service_version":"0001"},"transactionid":"56D57FE0FB5128D0E1000000AC1F152C","timestamp":"20160303053242.2035240","Error_Resolution":{"SAP_Transaction":"Run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details","SAP_Note":"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)","Batch_SAP_Note":"See SAP Note 1869434 for details about working with $batch (https://service.sap.com/sap/support/notes/1869434)"},"errordetails":[{"code":"/IWBEP/CX_MGW_TECH_EXCEPTION","message":"Default changeset implementation allows only one operation","propertyref":"","severity":"error","target":""}]}}}

--489CBE8C201BBF799E2DF4B92A3548D80--

 

Request you to kindly guide us why its not going into CREATE_DEEP_ENTITY Method.

 

Thanks,

Madhur Kanungo


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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