<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Update external service using POST method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-external-service-using-post-method/m-p/12331166#M1991600</link>
    <description>&lt;P&gt;The problem was solved. I had to get the Cookie values and the x-csrf-token using the GET method. Then use these along with the Transaction ID to post the data. I got a HTTP 201 message successfully.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jun 2021 16:05:05 GMT</pubDate>
    <dc:creator>ashok2021</dc:creator>
    <dc:date>2021-06-01T16:05:05Z</dc:date>
    <item>
      <title>Update external service using POST method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-external-service-using-post-method/m-p/12331162#M1991596</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I have a requirement where I need to post some data using an external RESTful service from ABAP with values. I have been provided the service name PLANNING_DATA_API_SRV which I have to call from a SAP SE38 program and pass some fixed values. Please let me know how to go about it as I have never done this before.&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 19:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-external-service-using-post-method/m-p/12331162#M1991596</guid>
      <dc:creator>ashok2021</dc:creator>
      <dc:date>2021-03-04T19:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Update external service using POST method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-external-service-using-post-method/m-p/12331163#M1991597</link>
      <description>&lt;P&gt;Hii Ashok,&lt;/P&gt;&lt;P&gt;Create a Report program and call the Below Class and Method, if the RFC connection is built in SM59 for the API then use CL_HTTP_CLIENT=&amp;gt;CREATE_BY_DESTINATION&lt;/P&gt;&lt;P&gt;Get the Url for PLANNING_DATA_API_SRV&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lo_http_client TYPE REF TO if_http_client.&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;Use CL_HTTP_CLIENT to consume the OData service using the method "create_by_url"
cl_http_client=&amp;gt;create_by_url(
     EXPORTING
       url                = lv_service
     IMPORTING
       client             = lo_http_client
     EXCEPTIONS
       argument_not_found = 1
       plugin_not_active  = 2
       internal_error     = 3
       OTHERS             = 4 ).

**** Send the request
   lo_http_client-&amp;gt;send(
     EXCEPTIONS
       http_communication_failure = 1
       http_invalid_state         = 2 ).

*** Receive the respose
  lo_http_client-&amp;gt;receive(
     EXCEPTIONS
       http_communication_failure = 1
       http_invalid_state         = 2
       http_processing_failed     = 3 ).

*** Read the result 
  CLEAR lv_result .
   lv_result = lo_http_client-&amp;gt;response-&amp;gt;get_cdata( ).
 write: lv_result.&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Mar 2021 07:14:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-external-service-using-post-method/m-p/12331163#M1991597</guid>
      <dc:creator>former_member732858</dc:creator>
      <dc:date>2021-03-05T07:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Update external service using POST method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-external-service-using-post-method/m-p/12331164#M1991598</link>
      <description>&lt;P&gt;Thank you for visiting SAP Community to get answers to your
questions. I recommend that you familiarize yourself with: &lt;A href="https://community.sap.com/resources/questions-and-answers"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;, as it provides tips for preparing questions that draw
responses from our members.&lt;/P&gt;&lt;P&gt;For
example, you can:&lt;/P&gt;&lt;P&gt;-
outline what steps you took to find answers (and why they weren't helpful)&lt;/P&gt;&lt;P&gt;- share
screenshots of what you've seen/done&lt;/P&gt;&lt;P&gt;- make
sure you've applied the appropriate tags&lt;/P&gt;&lt;P&gt;- use a
more descriptive subject line&lt;/P&gt;&lt;P&gt;The more details you provide, the more likely it is that
members will be able to respond. Feel free to also take our Q&amp;amp;A tutorial
at: &lt;A href="https://developers.sap.com/tutorials/community-qa.html"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Should
you wish, you can revise your question by selecting Actions, then Edit.&lt;/P&gt;&lt;P&gt;By adding a picture to your profile you
encourage readers to respond:&lt;A href="https://www.youtube.com/watch?v=46bt1juWUUM"&gt;https://www.youtube.com/watch?v=46bt1juWUUM&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Keep in mind, when you receive an answer that was helpful to you,
accept it as best answer. &lt;/P&gt;&lt;P&gt;Good
Luck&lt;/P&gt;&lt;P&gt;Kati -
SAP Community Moderator&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 07:16:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-external-service-using-post-method/m-p/12331164#M1991598</guid>
      <dc:creator>KatiNonhebel</dc:creator>
      <dc:date>2021-03-05T07:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Update external service using POST method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-external-service-using-post-method/m-p/12331165#M1991599</link>
      <description>&lt;P&gt;Hi Saif,&lt;/P&gt;&lt;P&gt;Thanks for the reply. I created a program. I used the GET and the POST methods for my program. In the GET part I had to get the CSRF token and the Transaction ID using cl_http_client=&amp;gt;create_by_destination and passing the RFC name. Next when using the POST method I used cl_http_client=&amp;gt;create_by_url, created the JSON file and passed the transaction ID and the CSRF token from the previous step. I get a HTTP 200 message but when I go to the destination system the data is not updated. Please assist.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ashok&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 14:47:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-external-service-using-post-method/m-p/12331165#M1991599</guid>
      <dc:creator>ashok2021</dc:creator>
      <dc:date>2021-03-05T14:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Update external service using POST method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-external-service-using-post-method/m-p/12331166#M1991600</link>
      <description>&lt;P&gt;The problem was solved. I had to get the Cookie values and the x-csrf-token using the GET method. Then use these along with the Transaction ID to post the data. I got a HTTP 201 message successfully.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 16:05:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-external-service-using-post-method/m-p/12331166#M1991600</guid>
      <dc:creator>ashok2021</dc:creator>
      <dc:date>2021-06-01T16:05:05Z</dc:date>
    </item>
  </channel>
</rss>

