<?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 IDOC_INBOUND_ASYNCHRONOUS waits for completion/Asynchronous in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-inbound-asynchronous-waits-for-completion-asynchronous/m-p/487577#M16255</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;We are creating an IDOC through a program using the FM 'IDOC_INBOUND_ASYNCHRONOUS'.&lt;/P&gt;
  &lt;P&gt;We are using this because we want the program to continue, without waiting for the IDOC to be created/processed.&lt;/P&gt;
  &lt;P&gt;But, the program is actually waiting till the IDOC is processed. When we take a closer look, the program is waiting in the statement 'wait until g_semaphore = 'X'.' inside the same standard FM.&lt;/P&gt;
  &lt;P&gt;Why is this happening? Because the FM is an Asynchronous FM, isn't it supposed to return control rightaway. Why is it waiting for the IDOC to finish processing?&lt;/P&gt;
  &lt;P&gt;We have also checked the configuration in WE20. The IDOC partner profile we use is set as 'Trigger by Background Program.'.&lt;/P&gt;
  &lt;P&gt;What are we missing here? Any input will be much appreciated.&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2017 08:15:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-07-31T08:15:28Z</dc:date>
    <item>
      <title>IDOC_INBOUND_ASYNCHRONOUS waits for completion/Asynchronous</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-inbound-asynchronous-waits-for-completion-asynchronous/m-p/487577#M16255</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;We are creating an IDOC through a program using the FM 'IDOC_INBOUND_ASYNCHRONOUS'.&lt;/P&gt;
  &lt;P&gt;We are using this because we want the program to continue, without waiting for the IDOC to be created/processed.&lt;/P&gt;
  &lt;P&gt;But, the program is actually waiting till the IDOC is processed. When we take a closer look, the program is waiting in the statement 'wait until g_semaphore = 'X'.' inside the same standard FM.&lt;/P&gt;
  &lt;P&gt;Why is this happening? Because the FM is an Asynchronous FM, isn't it supposed to return control rightaway. Why is it waiting for the IDOC to finish processing?&lt;/P&gt;
  &lt;P&gt;We have also checked the configuration in WE20. The IDOC partner profile we use is set as 'Trigger by Background Program.'.&lt;/P&gt;
  &lt;P&gt;What are we missing here? Any input will be much appreciated.&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 08:15:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-inbound-asynchronous-waits-for-completion-asynchronous/m-p/487577#M16255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-07-31T08:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC_INBOUND_ASYNCHRONOUS waits for completion/Asynchronous</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-inbound-asynchronous-waits-for-completion-asynchronous/m-p/487578#M16256</link>
      <description>&lt;P&gt;The FM IDOC_INBOUND_ASYNCHRONOUS is RFC enabled. You could (or should) call it 'asynchronously' with option &lt;A href="https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abapcall_function_starting.htm"&gt;CALL FUNCTION - STARTING NEW TASK&lt;/A&gt;.&lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;NB: For performance, in a MASS transaction, you should use the &lt;A href="https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abapcall_function_starting.htm#%21ABAP_ADDITION_2@2@"&gt;{CALLING meth}|{PERFORMING subr} ON END OF TASK&lt;/A&gt;&lt;/EM&gt;&lt;EM&gt; option to manage the number of tasks currently running (like in any correct parallel task management)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 12:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-inbound-asynchronous-waits-for-completion-asynchronous/m-p/487578#M16256</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-08-01T12:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC_INBOUND_ASYNCHRONOUS waits for completion/Asynchronous</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-inbound-asynchronous-waits-for-completion-asynchronous/m-p/487579#M16257</link>
      <description>&lt;P&gt;The reason i identified is, it is happening because in Partner profile (T CODE: WE20 ) --&amp;gt;Basic type--&amp;gt; 'Inbound options',here we have a radio button option, it was selected as 'TRIGGER IMMEDIATELY' due to which even if i am calling the FM in parallel processing(using CALL FM - STARTING NEW TASK) it will make the processing in wait until one IDOC gets process.&lt;/P&gt;
  &lt;P&gt;So, below are the steps to resolve the issue:&lt;/P&gt;
  &lt;P&gt;1. I have changed the radio button to 'TRIGGER BY BACKGROUND PROGRAM' in Partner profile(TCODE: WE20).&lt;/P&gt;
  &lt;P&gt;2. Call your FM in starting new task (using syntax: CALL FM 'Ztest_fm' STARTING NEW TASK))&lt;/P&gt;
  &lt;P&gt;3. Along with above we need to schedule a standard program in Production system to process in background mode,&lt;/P&gt;
  &lt;P&gt;Report: &lt;STRONG&gt;RBDAPP01 i &lt;/STRONG&gt;on hourly basis in production system.&lt;/P&gt;
  &lt;P&gt;Please note: After above steps the subsequent IDOCs will not wait for the completion of the prior idocs processing, it will execute very quickly.&lt;/P&gt;
  &lt;P&gt;And all the IDOCs will get process successfully with status as 64.&lt;/P&gt;
  &lt;P&gt;Remember, the Report: &lt;STRONG&gt;RBDAPP01 will actually process the IDOCs in Asynchronous mode and change the status to 53 after IDOC processing.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 11:56:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-inbound-asynchronous-waits-for-completion-asynchronous/m-p/487579#M16257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-08-24T11:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC_INBOUND_ASYNCHRONOUS waits for completion/Asynchronous</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-inbound-asynchronous-waits-for-completion-asynchronous/m-p/487580#M16258</link>
      <description>&lt;P&gt;Thanks for an update. If this has been answered then kindly &lt;A href="https://blogs.sap.com/2017/08/15/what-to-do-with-my-answered-questions/"&gt;close the question&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 17:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-inbound-asynchronous-waits-for-completion-asynchronous/m-p/487580#M16258</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2017-08-25T17:46:14Z</dc:date>
    </item>
  </channel>
</rss>

