cancel
Showing results for 
Search instead for 
Did you mean: 

how to call a odata with method patch

mark_fryu
Participant
0 Kudos

hi, I'm calling an odata service with patch method.

API_PRODUCTION_ORDER_2_SRV

resource path: A_ProductionOrder_2('ManufacturingOrder')

if I use the Odata adapter I get the error "Bad Request : 400 : HTTP/1.1"

while if I use the http adapter I receive the error: "Name or service not known"

can you help me to call a service with patch method?

thank you

dharamverma
Explorer

Please read my blog on this

I hope it will help you

View Entire Topic
dharamverma
Explorer

Following payload is working fine for me

<?xml version="1.0" encoding="UTF-8"?> <A_ProductionOrder_2><A_ProductionOrder_2Type><TotalQuantity>2.000</TotalQuantity></A_ProductionOrder_2Type></A_ProductionOrder_2>

Remember one point, dont send the same quantity again what you are getting in get call

quantity value should be diffrent from current value

mark_fryu
Participant
0 Kudos

thanks, this solved my problem, I accepted you as the correct answer 🙂 thank you very much.

I opened another question regarding a problem on oData, here is the link:

https://answers.sap.com/questions/14030205/format-field-opschedldstarttime-of-odata-api-produ.html