<?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: Call function in background task. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/9805500#M1780504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Oct 2013 14:40:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-10-08T14:40:18Z</dc:date>
    <item>
      <title>Call function in background task.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/9805498#M1780502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling one function module in background and with RFC destination. I am using IMPORTING parameter there. Using this importing parameter's value I am performing further action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I have received one warning message when I checked is 'Function in background task can't IMPORT any values.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to know when I will run this program, shall I get value in IMPORTING parameter ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 14:23:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/9805498#M1780502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-08T14:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Call function in background task.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/9805499#M1780503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To use importing parameter in the CALL FUNCTION statement, you must use a synchronous call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calling this FM &lt;A href="http://help.sap.com/abapdocu_731/en/abapcall_function_background_task.htm"&gt;IN BACKGROUND TASK&lt;/A&gt; will execute it in another LUW after the end of update tasks triggered by &lt;A href="http://help.sap.com/abapdocu_731/en/abapcommit.htm"&gt;COMMIT WORK&lt;/A&gt; and you wont get the result back (&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;Your transaction will be&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;already &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;completed at that time&lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure you want to execute the FM with this mode, were you&amp;nbsp; trying to execute an asynchronous call and get the result later for performance problem, if yes, look for syntax of &lt;A href="http://help.sap.com/abapdocu_731/en/abapcall_function_starting.htm"&gt;CALL FUNCTION STARTING NEW TASK&lt;/A&gt;, in this mode you can trigger a form or method to &lt;A href="http://help.sap.com/abapdocu_731/en/abapreceive.htmhttp://"&gt;RECEIVE&lt;/A&gt; results later in the caller program. Also manage a counter in global area to keep trace of the number of asynchronous call not yet completed, increment when starting a new task, and decrement after the RECEIVE statement, you could then wait in your code until this value reaches zero, no more task currently active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't hesitate to use F1 key on Abap editor when you try new statements. &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1866/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 14:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/9805499#M1780503</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-10-08T14:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Call function in background task.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/9805500#M1780504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 14:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/9805500#M1780504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-08T14:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Call function in background task.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/9805501#M1780505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You wont be getting any values in IMPORTING parameter in background mode.&lt;/P&gt;&lt;P&gt;Suggest you not to execute RFC in background as you have do further processing after getting IMPORTING parameter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 14:41:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/9805501#M1780505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-08T14:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Call function in background task.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/9805502#M1780506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously I have written function module like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call function 'ABC' in background task&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; destination XYZ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMMIT WORK.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now...I have removed in background task and tested and got abap dump. After that I have removed COMMIT WORK also but got the same abap dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I should write my code now ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 07:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/9805502#M1780506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-09T07:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Call function in background task.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/9805503#M1780507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great Explanation Raymond ! &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 07:52:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/9805503#M1780507</guid>
      <dc:creator>former_member188251</dc:creator>
      <dc:date>2013-10-09T07:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Call function in background task.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/9805504#M1780508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post the dump ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 07:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/9805504#M1780508</guid>
      <dc:creator>former_member188251</dc:creator>
      <dc:date>2013-10-09T07:56:46Z</dc:date>
    </item>
  </channel>
</rss>

