cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove 'd' wrapper from odata json response ?

Former Member
0 Kudos

Hello,

from example request :

/sap/opu/odata/sap/ZQM_CONFIRMATION_SRV/Check_batch_and_cust?$format=json&WERK='ASJV'&PDATUM=''&CHARGE='140005'&MENGE=''&VORG=''

response json looks like this:

{"d":{"__metadata":{"id":"http://x:8000/sap/opu/odata/sap/ZQM_CONFIRMATION_SRV/CHECK_BATCH_AND_CUSTOMERSet(Charge='',Menge='',...'')","uri":"http://x:8000/sap/opu/odata/sap/ZQM_CONFIRMATION_SRV/CHECK_BATCH_AND_CUSTOMERSet(Charge='',Menge='',...'')","type":"ZQM_CONFIRMATION_SRV.CHECK_BATCH_AND_CUSTOMER"},"Charge":"","Menge":"","Pdatum":"","Vorg":"","Werk":"","Msg":"OK","Name1":"WIN-Warth GmbH","Name2":"","Status":"0"}}

I want to remove wrapper 'd'

Any ideas ?

regards

Lucas

Accepted Solutions (0)

Answers (2)

Answers (2)

sreehari_vpillai
Active Contributor
0 Kudos

no way you can not remove that "d" out of the response. better when you consume from your odata client(may be UI5), remove the "d" and use it.

Sree

AshwinDutt
Active Contributor
0 Kudos

Hello Lukasz,

In my openion your json response will always be encapsulated in a standard structure/format as u have shared. I do not see any way u can remove ' d ' from the json response in GW level

Regards,

Ashwin