<?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 - New task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-new-task/m-p/4616416#M1087690</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;there is no need to start new tasks - just unlock after each BAPI call using FM DEQUEUE_ALL or - more precisely - BAPI_TRANSACTION_COMMIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;HP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2008 13:55:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-15T13:55:45Z</dc:date>
    <item>
      <title>Call function - New task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-new-task/m-p/4616412#M1087686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use the &lt;STRONG&gt;Call Function - New task&lt;/STRONG&gt; for one of my requirments. Please suggest if I am not doing right. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My programs looping structure is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP at zwewa_x.&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;PERFORM bapi_matphysinv_changecount.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bapi_matphysinv_changecount .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;call function 'BAPI_MATPHYSINV_CHANGECOUNT'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      physinventory             = zwewa_y-iblnr&lt;/P&gt;&lt;P&gt;      fiscalyear                   = zwewa_y-gjahr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PERCENTAGE_VARIANCE       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      items                     = itab&lt;/P&gt;&lt;P&gt;      return                     = it_return.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDFORM.      " BAPI_MATPHYSINV_CHANGECOUNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why am I thinking to use NEW TAEK is; when normally I call the BAPI its creates so many locks on the different different tables resulting LOCK table memory issue. So I thought to use the NEW TASK addition which would run a new session and while coming back to the calling program, would release all the locks. But I am not understanding how to use the NEW TASK perfectly and how to get the values (IT_RETURN) back from the new session to the calling program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody send me the sample code where NEW TASK statement is being used and later from the new session values or Internal tables are coming back to the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would be a great help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 06:43:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-new-task/m-p/4616412#M1087686</guid>
      <dc:creator>former_member190178</dc:creator>
      <dc:date>2008-10-14T06:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Call function - New task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-new-task/m-p/4616413#M1087687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 12:11:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-new-task/m-p/4616413#M1087687</guid>
      <dc:creator>former_member190178</dc:creator>
      <dc:date>2008-10-15T12:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Call function - New task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-new-task/m-p/4616414#M1087688</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;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION func STARTING NEW TASK task &lt;/P&gt;&lt;P&gt;              [DESTINATION {dest|{IN GROUP {group|DEFAULT}}}] &lt;/P&gt;&lt;P&gt;              parameter list &lt;/P&gt;&lt;P&gt;              [{PERFORMING subr}|{CALLING meth} ON END OF TASK]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neenu Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 12:40:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-new-task/m-p/4616414#M1087688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T12:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Call function - New task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-new-task/m-p/4616415#M1087689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be you can try with Parallel processing.&lt;/P&gt;&lt;P&gt;check this Documentation on parallel processing.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/22/0425c6488911d189490000e829fbbd/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/22/0425c6488911d189490000e829fbbd/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:08:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-new-task/m-p/4616415#M1087689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T13:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Call function - New task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-new-task/m-p/4616416#M1087690</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;there is no need to start new tasks - just unlock after each BAPI call using FM DEQUEUE_ALL or - more precisely - BAPI_TRANSACTION_COMMIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;HP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-new-task/m-p/4616416#M1087690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T13:55:45Z</dc:date>
    </item>
  </channel>
</rss>

