<?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 with bapi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/5410826#M1242447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might be because when you see in debugging you see the internal tables directly..&lt;/P&gt;&lt;P&gt;But when you run it you check in database tables...&lt;/P&gt;&lt;P&gt;So you might have not written commit work at the end of Bapi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit Mohan Gupta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2009 14:31:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-07T14:31:22Z</dc:date>
    <item>
      <title>Problem with bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/5410824#M1242445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    i have a problem in a program and i don´t know how to solve it. I´m using BAPI_CUSTOMERQUOTATION_CHANGE to modify a quotation. The Bapi works perfectly when i debug the code, but when I delete the breakpoint, the bapi doesn´t work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone knows what can i do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 14:02:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/5410824#M1242445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T14:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/5410825#M1242446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try to use FM BAPI_TRANSACTION_COMMIT and set the parameter wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Leo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 14:05:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/5410825#M1242446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T14:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/5410826#M1242447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might be because when you see in debugging you see the internal tables directly..&lt;/P&gt;&lt;P&gt;But when you run it you check in database tables...&lt;/P&gt;&lt;P&gt;So you might have not written commit work at the end of Bapi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit Mohan Gupta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 14:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/5410826#M1242447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T14:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/5410827#M1242448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using BAPI_TRANSACTION_COMMIT after BAPI_CUSTOMERQUOTATION_CHANGE . It will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 14:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/5410827#M1242448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T14:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/5410828#M1242449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While using bapi transaction commit,&lt;/P&gt;&lt;P&gt;set the parameter WAIT = X. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using the bapi in a loop?&lt;/P&gt;&lt;P&gt;Then for wait problem the problem happens.&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, 07 Apr 2009 14:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/5410828#M1242449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T14:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/5410829#M1242450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think i´ve solve the problem locating some "wait up to 1 seconds" instruction just before each bapi call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 15:00:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/5410829#M1242450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T15:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/5410830#M1242451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wait upto 1 seconds works for some particular cases with increasing load you may require more time to wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better handle the time dynamically &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;CALL FUNCTION ' &lt;STRONG&gt;&lt;U&gt;BAPI&lt;/U&gt;&lt;/STRONG&gt;*****  '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Check return table for errors&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constant_max_time = 8.  ** maximum seconds of looping&lt;/P&gt;&lt;P&gt;w_counter = 0.    ** initialize counter &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHILE w_counter &amp;lt; constant_max_time.&lt;/P&gt;&lt;P&gt;  w_counter = w_counter + 1.&lt;/P&gt;&lt;P&gt;  WAIT UP TO 1 SECONDS. &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Now check for exit conditions, like object is unlocked, table is updated, etc&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  IF &amp;lt;example: object is unlocked&amp;gt;.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDWHILE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF w_counter = constant_max_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Sanity check:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;throw an error if the update was not completed within the max allotted time&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    to allow to investigate the possible causes of exceptional delay&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;Usuallly with z-bapi-s and some standard bapi-s this happen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 16:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/5410830#M1242451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T16:07:16Z</dc:date>
    </item>
  </channel>
</rss>

