cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CREATE_DEEP_ENTITY issue using $batch

Former Member
0 Likes
6,032

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.

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

View Entire Topic
Former Member
0 Likes

Hello Expert,

I have figured out the problem and my breakpoint is changeset begin method is triggering properly.

But its not still reaching to CREATE DEEP Entity method.

I am getting below error.

--04896B02DD9BA0C4B60184CFE3E18B980

Content-Type: application/http

Content-Length: 1172

content-transfer-encoding: binary

HTTP/1.1 500 Internal Server Error

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

Content-Length: 943

location: http://XXXXXXXXXXXXXXXX/ZODS_WORKMANAGER_SERVICE_SRV/WoHeaderSet('')

dataserviceversion: 1.0

{"error":{"code":"/IWBEP/CM_MGW_RT/187","message":{"lang":"en","value":"Content referencing is only allowed for changeset at once."},"innererror":{"application":{"component_id":"","service_namespace":"/SAP/","service_id":"ZODS_WORKMANAGER_SERVICE_SRV","service_version":"0001"},"transactionid":"56D5E387FB4B28CFE1000000AC1F152C","timestamp":"20160303064031.8581340","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":"Content referencing is only allowed for changeset at once","propertyref":"","severity":"error","target":""}]}}}

--04896B02DD9BA0C4B60184CFE3E18B980--

Thanks,

Madhur