<?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 a Remote Enabled Function Module in BackGround Task/Unit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-a-remote-enabled-function-module-in-background-task-unit/m-p/9352129#M1731457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Hi Chaitanya,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It is seems to be an very odd requirement. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1288/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;BR /&gt;Anyway, we need to know the complete scenario (basically answering Edgar's questions). We rely on your answers to provide suggestions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Mar 2013 22:29:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-03-14T22:29:09Z</dc:date>
    <item>
      <title>Call a Remote Enabled Function Module in BackGround Task/Unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-a-remote-enabled-function-module-in-background-task-unit/m-p/9352127#M1731455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seniors,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it not possible to call a Remote Enabled Function Module inside another Remote Enabled Function Module of the Same Function Group? I want to call the 2nd / sub function module in a "&lt;STRONG&gt;BACKGROUND TASK, (w/wo AS SEPARATE UNIT)"&lt;/STRONG&gt; or a "&lt;STRONG&gt;BACKGROUND UNIT&lt;/STRONG&gt;". If yes, what are the prerequisites other than both the FM's being remote enabled ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Chaitanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 18:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-a-remote-enabled-function-module-in-background-task-unit/m-p/9352127#M1731455</guid>
      <dc:creator>former_member229034</dc:creator>
      <dc:date>2013-03-14T18:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Call a Remote Enabled Function Module in BackGround Task/Unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-a-remote-enabled-function-module-in-background-task-unit/m-p/9352128#M1731456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chaitanya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your first program will call a RFC FM in a 2nd system that will call another RFC FM in a 3rd? Cool! &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1288/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;At a first glance I don't see any concerns on this, specially because you would call 2nd RFC FM as background task (and it will run independently) what would mean you don't need to have any commiting point at 1st RFC FM. But you would need to test it, please tell us what happened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edgar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 19:46:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-a-remote-enabled-function-module-in-background-task-unit/m-p/9352128#M1731456</guid>
      <dc:creator>edgar_nagasaki</dc:creator>
      <dc:date>2013-03-14T19:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Call a Remote Enabled Function Module in BackGround Task/Unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-a-remote-enabled-function-module-in-background-task-unit/m-p/9352129#M1731457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Hi Chaitanya,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It is seems to be an very odd requirement. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1288/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;BR /&gt;Anyway, we need to know the complete scenario (basically answering Edgar's questions). We rely on your answers to provide suggestions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 22:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-a-remote-enabled-function-module-in-background-task-unit/m-p/9352129#M1731457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-14T22:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Call a Remote Enabled Function Module in BackGround Task/Unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-a-remote-enabled-function-module-in-background-task-unit/m-p/9352130#M1731458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edgar and Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly, Thank you very much for your replies &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1288/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The concept is: There are 2 RFC FM's - both custom(ZFM's); &lt;/P&gt;&lt;P&gt;1&amp;gt; 1 is the wrapper, which is called from an external system/application, and this passes all the selection criteria data from its interface parameters to the called/2nd RFC FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2&amp;gt; Both these FM's are from the same function group as I said earlier. Also, both the remote calls are to the same system - No other SAP system involved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3&amp;gt; The second RFC FM is supposed/expected to fetch some good amount of data at times, based on the selection parameters it receives from the wrapper(1st) RFC FM. ((Considering performance issues as well, I am having to call this in background...!!!))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4&amp;gt; Now, I tried to call the 2ndRFC FM in background task and also in background unit. In the debug, while I try to get into the 2nd RFC FM, the execution does not go into it at all - as a result, no data is fetched. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a FM is called in the Background task or unit is it not supposed to execute in background for execution ? Or is there some thing missing in here ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Chaitanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 03:45:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-a-remote-enabled-function-module-in-background-task-unit/m-p/9352130#M1731458</guid>
      <dc:creator>former_member229034</dc:creator>
      <dc:date>2013-03-15T03:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Call a Remote Enabled Function Module in BackGround Task/Unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-a-remote-enabled-function-module-in-background-task-unit/m-p/9352131#M1731459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chaitanya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're very welcome and I'm truly glad to see you appreciatte our (simple but sincere &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1288/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;) help. Some people over here doesn't say thank you at all. &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1288/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Okay, think I got your requirement now and, indeed, you've mentioned both FMs were part of same function group (and therefore running at same system), my misunderstanding. It's about assynchronous processing and what you would need to do with 2nd FM is to implement some parallel processing techniques and, in this way, make 1st FM to wait for 2nd FM all results. I won't try to explain all of it over here once it could be extensive but don't be affraid, it's not a big deal. &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1288/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Take a look in following link (would suggest to google for some examples too) specially regarding this addition (what will make your 1st FM to wait for 2nd one results):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;WAIT&lt;/STRONG&gt;: ABAP keyword&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WAIT UNTIL &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;logical expression&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Required if you &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;wish to wait for all of the asynchronous parallel tasks created with CALL &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FUNCTION to return. This is normally a requirement for orderly background &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;processing. May be used only if the CALL FUNCTION includes the PERFORMING ON &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RETURN addition. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The link: &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/22/0425c6488911d189490000e829fbbd/content.htm"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/22/0425c6488911d189490000e829fbbd/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for to not explain it all but, as I mentioned, it would take some time. It's just a direction, hope you can find the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edgar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 04:06:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-a-remote-enabled-function-module-in-background-task-unit/m-p/9352131#M1731459</guid>
      <dc:creator>edgar_nagasaki</dc:creator>
      <dc:date>2013-03-15T04:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Call a Remote Enabled Function Module in BackGround Task/Unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-a-remote-enabled-function-module-in-background-task-unit/m-p/9352132#M1731460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Hi Chaitanya,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;I agree with Edgar. It's about &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;assynchronous &lt;/SPAN&gt;processing and the RFC call is syncronous.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;As per SAP documentation the call of the 2nd RFC in background only register your function to be executed later, right after a commit work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I see two different approaches to turn your synchronous process into asynchronous:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;1) Instead of having only one RFC being called by the external system, create a 3rd RFC two fetch the results in a second call. You can return an ID in the first RFC call so you can identify the second request later.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;2) Create a 3rd RFC to callback the first system when the proccess is finished&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Both are not easy two implement. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Christian&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 09:05:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-a-remote-enabled-function-module-in-background-task-unit/m-p/9352132#M1731460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-15T09:05:59Z</dc:date>
    </item>
  </channel>
</rss>

