<?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: Problem : BAPI in Background Mode. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953942#M1799017</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share your sample code for the same&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Dec 2013 08:42:47 GMT</pubDate>
    <dc:creator>nabheetscn</dc:creator>
    <dc:date>2013-12-27T08:42:47Z</dc:date>
    <item>
      <title>Problem : BAPI in Background Mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953941#M1799016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am executing two BAPI's(BAPI_SALESORDER_CHANGE and BAPI_GOODSMVT_CREATE) &lt;BR /&gt;in a report.My problem is for first material both the BAPI's are running fine but for the second material salesorder_change&lt;/P&gt;&lt;P&gt;BAPI is executed but for goodsmvt_create BAPI its showing an error that material is locked by certain user, which is not true.As&lt;SPAN style="font-size: 10pt;"&gt; I run the same in debugger I donot encounter any of this Problems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please Help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds&lt;/P&gt;&lt;P&gt;SUHAS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 08:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953941#M1799016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-27T08:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem : BAPI in Background Mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953942#M1799017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share your sample code for the same&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 08:42:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953942#M1799017</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2013-12-27T08:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem : BAPI in Background Mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953943#M1799018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While update the material tables using BAPI_SALESORDER_CHANGE, material will be locked and it will be released after some times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use wait up to &amp;lt;number&amp;gt; seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will resolve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arivazhagan S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 09:01:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953943#M1799018</guid>
      <dc:creator>arivazhagan_sivasamy</dc:creator>
      <dc:date>2013-12-27T09:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem : BAPI in Background Mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953944#M1799019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use BAPI_TRANSACTION_COMMIT after BAPI_SALESORDER_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 09:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953944#M1799019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-27T09:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem : BAPI in Background Mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953945#M1799020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try with calling BAPI: BAPI_TRANSACTION_COMMIT after execution of (BAPI_SALESORDER_CHANGE and BAPI_GOODSMVT_CREATE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;IF wa&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NA &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'EA' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OR &lt;/SPAN&gt;wa&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NA &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'E'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'BAPI_TRANSACTION_COMMIT' &lt;/SPAN&gt;DESTINATION xyz&lt;SPAN class="L0S70"&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WAIT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'X'&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETURN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S31"&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;ENDIF.&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;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the error status of your BAPI and if no error then call commit BAPI to commit your work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it may solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 09:05:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953945#M1799020</guid>
      <dc:creator>former_member187651</dc:creator>
      <dc:date>2013-12-27T09:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem : BAPI in Background Mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953946#M1799021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass WAIT as 'X' to 'BAPI_TRANSACTION_COMMIT' which should solve the problem. If you still encounter the same issue, you can choose to introduce some delay manually as below before calling BAPI_GOODSMVT_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WAIT UP TO 2 SECONDS.&amp;nbsp; " System waits for specified time units so that the locks are released&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 09:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953946#M1799021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-27T09:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem : BAPI in Background Mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953947#M1799022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Use &lt;STRONG&gt;Call Function&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="L0S33"&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;BAPI_TRANSACTION_COMMIT'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. after "&lt;SPAN style="color: #333333; font-size: 12px; text-decoration: underline;"&gt;BAPI_SALESORDER_CHANGE&lt;/SPAN&gt;".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;then use &lt;STRONG&gt;WAIT UP TO &lt;SPAN class="L0S32"&gt;3 &lt;/SPAN&gt;SECONDS&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;then use &lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;Call Function&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN class="L0S33"&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;SPAN style="color: #444444; font-family: arial, sans-serif;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;BAPI_GOODSMVT_CREATE&lt;/SPAN&gt;'.&lt;/SPAN&gt;&lt;STRONG style="color: #444444; font-family: arial, sans-serif;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S33"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;This will resolve your problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;NG.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/408/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 11:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953947#M1799022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-27T11:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem : BAPI in Background Mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953948#M1799023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Suhas, &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; After passing data in BDC&amp;nbsp; code using work area or structure please clear work area &amp;amp; refresh internal table ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 11:35:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-bapi-in-background-mode/m-p/9953948#M1799023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-27T11:35:45Z</dc:date>
    </item>
  </channel>
</rss>

