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

JSON_PARSER_ERROR in REST consuming Service

$
0
0

Hi All,

 

I am updating the External system Service(Sales Force) through REST API's using SAP ABAP. I'm giving the inputs as specified below.

 

Requested Body in the form Of JSON:

 

  body = '{ "City" : "Newyork" } '.

 

     lv_body = body.

 

Sending Request

 

  http_client->request->set_header_field( name  = '~request_method'

    value = 'PATCH' ).


while executing the report i am getting the below message in the content field.


[{"message":"The HTTP entity body is required, but this request has no entity body.","errorCode":"JSON_PARSER_ERROR"}]


 

Please kindly help me on this.


Thanks,

Harikrishna


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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