<?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: Function module HTTP_POST in Background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-http-post-in-background/m-p/3421346#M821693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK it should work in background as well. what do you get in &lt;STRONG&gt;response_header[]&lt;/STRONG&gt; table . is the sy-subrc still 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2008 09:07:03 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2008-02-20T09:07:03Z</dc:date>
    <item>
      <title>Function module HTTP_POST in Background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-http-post-in-background/m-p/3421345#M821692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using function module HTTP_POST to get xml from web. My object is working perfectly fine when I execute it in foreground (online) but the same when executed as a background job is not returning me anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;1. Is it possible to use this function module in a background job?&lt;/P&gt;&lt;P&gt;2. What can be errors in this case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code for reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HTTP_POST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ABSOLUTE_URI = urlstring&lt;/P&gt;&lt;P&gt;REQUEST_ENTITY_BODY_LENGTH = reqlen&lt;/P&gt;&lt;P&gt;RFC_DESTINATION = 'SAPHTTP'&lt;/P&gt;&lt;P&gt;&amp;#149;	PROXY = &lt;/P&gt;&lt;P&gt;&amp;#149;	PROXY_USER = &lt;/P&gt;&lt;P&gt;&amp;#149;	PROXY_PASSWORD = &lt;/P&gt;&lt;P&gt;&amp;#149;	USER = &lt;/P&gt;&lt;P&gt;&amp;#149;	PASSWORD = &lt;/P&gt;&lt;P&gt;&amp;#149;	BLANKSTOCRLF = &lt;/P&gt;&lt;P&gt;&amp;#149;	IMPORTING &lt;/P&gt;&lt;P&gt;&amp;#149;	STATUS_CODE = &lt;/P&gt;&lt;P&gt;&amp;#149;	STATUS_TEXT = &lt;/P&gt;&lt;P&gt;&amp;#149;	RESPONSE_ENTITY_BODY_LENGTH = &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;REQUEST_ENTITY_BODY     = xmldoc[]&lt;/P&gt;&lt;P&gt;RESPONSE_ENTITY_BODY  = response body[]&lt;/P&gt;&lt;P&gt;RESPONSE_HEADERS        = response_header[]&lt;/P&gt;&lt;P&gt;REQUEST_HEADERS           = request_header[]&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;CONNECT_FAILED = 1&lt;/P&gt;&lt;P&gt;TIMEOUT = 2&lt;/P&gt;&lt;P&gt;INTERNAL_ERROR = 3&lt;/P&gt;&lt;P&gt;TCPIP_ERROR = 4&lt;/P&gt;&lt;P&gt;SYSTEM_FAILURE = 5&lt;/P&gt;&lt;P&gt;COMMUNICATION_FAILURE = 6&lt;/P&gt;&lt;P&gt;OTHERS = 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srilakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 08:59:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-http-post-in-background/m-p/3421345#M821692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T08:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Function module HTTP_POST in Background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-http-post-in-background/m-p/3421346#M821693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK it should work in background as well. what do you get in &lt;STRONG&gt;response_header[]&lt;/STRONG&gt; table . is the sy-subrc still 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-http-post-in-background/m-p/3421346#M821693</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2008-02-20T09:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function module HTTP_POST in Background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-http-post-in-background/m-p/3421347#M821694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;        So according to your understanding background processign is also possible with the same FM (HTTP_POST).&lt;/P&gt;&lt;P&gt;So is there any special thing which we need to pass into the interface of the FM for taking care the background processing scenario. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to my understanding in the &lt;STRONG&gt;Response header&lt;/STRONG&gt; we will get details from the linked webpage(URL which we pass in the FM). In my report i want to process that linked details coming thru Response header. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srilakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:30:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-http-post-in-background/m-p/3421347#M821694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T09:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Function module HTTP_POST in Background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-http-post-in-background/m-p/3421348#M821695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what i asked was did Response header returns anything when the fm is called?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I havent used HTTP_POST for a backgorund option. however i am using cl_http_client for getting some RSS feeds, which is running as a background job without any problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If interested, i can help you cl_http_client coding&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-http-post-in-background/m-p/3421348#M821695</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2008-02-20T09:37:18Z</dc:date>
    </item>
  </channel>
</rss>

