<?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 How to capture return messages from function module which is executing in background task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-return-messages-from-function-module-which-is-executing-in/m-p/834701#M43764</link>
    <description>&lt;P&gt;Hello All, &lt;/P&gt;
  &lt;P&gt;I need your expertise on this issue. &lt;/P&gt;
  &lt;P&gt;I have a custom remote enable function module which is having one export parameter and one return table in the tables section to get the return messages from FM. I am calling this FM in background task in a report, basic business functionality working fine but not getting return messages in the calling program. &lt;/P&gt;
  &lt;P&gt;If we execute this FM normally, we are getting return messages but my requirement is to expect the FM in background task. &lt;/P&gt;
  &lt;P&gt;exact calling ... CALL FUNCTION 'XXXXX' IN BACKGROUND TASK. &lt;/P&gt;
  &lt;P&gt; Regards,&lt;/P&gt;</description>
    <pubDate>Mon, 25 Feb 2019 06:27:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-02-25T06:27:46Z</dc:date>
    <item>
      <title>How to capture return messages from function module which is executing in background task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-return-messages-from-function-module-which-is-executing-in/m-p/834701#M43764</link>
      <description>&lt;P&gt;Hello All, &lt;/P&gt;
  &lt;P&gt;I need your expertise on this issue. &lt;/P&gt;
  &lt;P&gt;I have a custom remote enable function module which is having one export parameter and one return table in the tables section to get the return messages from FM. I am calling this FM in background task in a report, basic business functionality working fine but not getting return messages in the calling program. &lt;/P&gt;
  &lt;P&gt;If we execute this FM normally, we are getting return messages but my requirement is to expect the FM in background task. &lt;/P&gt;
  &lt;P&gt;exact calling ... CALL FUNCTION 'XXXXX' IN BACKGROUND TASK. &lt;/P&gt;
  &lt;P&gt; Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 06:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-return-messages-from-function-module-which-is-executing-in/m-p/834701#M43764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-25T06:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture return messages from function module which is executing in background task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-return-messages-from-function-module-which-is-executing-in/m-p/834702#M43765</link>
      <description>&lt;P&gt;Have you tried reading all the documentation of CALL FUNCTION ... IN BACKGROUND? You'll see there are no IMPORTING parameters. This is a bit of a clue. You can't get info back from BACKGROUND.&lt;/P&gt;&lt;P&gt;Try asynchronous instead of background, using STARTING NEW TASK. That will meet your requirements.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 07:08:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-return-messages-from-function-module-which-is-executing-in/m-p/834702#M43765</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2019-02-25T07:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture return messages from function module which is executing in background task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-return-messages-from-function-module-which-is-executing-in/m-p/834703#M43766</link>
      <description>&lt;P&gt;Your FM will be executed asynchronously in another luw, so you cannot RECEIVE any returned parameter if you don't use  &lt;SPAN class="mention-scrubbed"&gt;matthew.billingham&lt;/SPAN&gt;'s proposal.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hint: Nevertheless, as you may already know, there is an execution log in SM58, to get it in your program, get the unique TID associated to the call with a call of FM ID_OF_BACKGROUNDTASK after the IN BACKGROUND call. Then use (in some LOOP¨waiting til end of execution) the FM STATUS_OF_BACKGROUNDTASK to get any message generated by the call. (Of course you must change your RETURN table to some MESSAGE statements)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 07:38:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-return-messages-from-function-module-which-is-executing-in/m-p/834703#M43766</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2019-02-25T07:38:50Z</dc:date>
    </item>
  </channel>
</rss>

