Skip to Content
0
Apr 15, 2014 at 07:54 AM

Deep insert JSON error

311 Views

Dear all,

Deep insert functionality works like a charm for XML but not for JSON. I dont know where i went wrong. Can you please help?

I referred similar threads on this and I removed "results" tag from the request.


JSON data:


var data_json = {

"d":{

"__metadata":{

"uri":"http://xxxx.xxxx.com:8000/sap/opu/odata/sap/Z_SRV_CL_FLIGHT_DETAILS/Airline_Details(CARRID='AA',CONNID='1234')","type":"Z_SRV_CL_FLIGHT_DETAILS.FlightDetails"},

"CARRID":"AA",

"CONNID":"1234","FL_TO_BOOK_LIST":[{

"__metadata":{ "uri":"http://xxxx.xxxx.com:8000/sap/opu/odata/sap/Z_SRV_CL_FLIGHT_DETAILS/Booking_Details(CARRID='AA',CONNID='1234')","type":"Z_SRV_CL_FLIGHT_DETAILS.BookingDetails"},

"CARRID":"AA",

"CONNID":"1234",

"BOOKID" : "8000"}]}};



Request payload is attached.


Should I implement this SAP note # 1874920 for the following system release too ?

GW_CORE 200 0005

IW_BEP 200 0005

IW_FND 250 0005


Please suggest .


Regards

Prabaharan

Attachments