<?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: changes + commit work ...Strange behaviour in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374783#M526472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is tables are getting locked, wait until everything is save.. Use FM for delay or use WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2007 09:39:37 GMT</pubDate>
    <dc:creator>former_member196280</dc:creator>
    <dc:date>2007-06-13T09:39:37Z</dc:date>
    <item>
      <title>changes + commit work ...Strange behaviour</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374780#M526469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing very strange behaviour, Actually I am dooing following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;creating new operation in service order ( iw72 )&lt;/P&gt;&lt;P&gt;creating new document&lt;/P&gt;&lt;P&gt;attatch this newly created document to this operation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for this purpose, I have to use a couple of FM/BAPIS, insert and update dict tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what strange behaviour is when ever in a particular order I tried to create the operation it does not work, however after few tries ( 2nd or 3rd time ) it really creates the operation + document + prts etc.... ( like actually expected )...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no clarification why one time does not work, and other time works !!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Getting mad &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: after each bapi and updating and inserting I am doing commit work, so there are around 7 or 8 commit works in program ? can it be a reason ????????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 09:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374780#M526469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T09:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: changes + commit work ...Strange behaviour</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374781#M526470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to that after the commit BAPI use the Wait command to wait for 5 seconds or some time accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Ex :   wait up to 4 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: Make sure u use the BAPI_TRANSACTION_COMMIT after each BAPI call&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Gopi Narendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 09:36:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374781#M526470</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-06-13T09:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: changes + commit work ...Strange behaviour</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374782#M526471</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;Do not use COMMIT WORK after each BAPI &lt;/P&gt;&lt;P&gt;instead use FM BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jogdand M B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 09:39:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374782#M526471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T09:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: changes + commit work ...Strange behaviour</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374783#M526472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is tables are getting locked, wait until everything is save.. Use FM for delay or use WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 09:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374783#M526472</guid>
      <dc:creator>former_member196280</dc:creator>
      <dc:date>2007-06-13T09:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: changes + commit work ...Strange behaviour</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374784#M526473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wait should resolve the issue ? I mean what I do not understand why it works after a couple of tries, and then keep working on..... but next day when I take another cs order, and try first ... do not work, however again after couple of tries works fine.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 09:41:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374784#M526473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T09:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: changes + commit work ...Strange behaviour</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374785#M526474</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 using the function BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 09:41:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374785#M526474</guid>
      <dc:creator>former_member378318</dc:creator>
      <dc:date>2007-06-13T09:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: changes + commit work ...Strange behaviour</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374786#M526475</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;in help its written :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"WAIT should only be used with asynchronous Remote Function Calls" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I am not using asynchronous Remote Function Calls &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 09:43:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374786#M526475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T09:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: changes + commit work ...Strange behaviour</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374787#M526476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, It will resolve the issue, the time taken to execute the next statement after the commit statement is not sufficient to update all the tables thats the reason WAIT statement is needed in addition to the BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Never use a Commit statement insted use the BAPI : BAPI_TRANSACTION_COMMIT always&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Just add the wait statement, this solves&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Gopi Narendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 09:45:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374787#M526476</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-06-13T09:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: changes + commit work ...Strange behaviour</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374788#M526477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but I have gone through a couple of fourms, and there they wrote, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is actually no difference between commit work, or this bapi "BAPI_TRANSACTION_COMMIT"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I am not using asyn bpai, and in help they wrote wait should use with asyn bapis ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 09:50:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374788#M526477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T09:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: changes + commit work ...Strange behaviour</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374789#M526478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Actually there is a difference! You should use BAPI_TRANSACTION_COMMIT with active wait.&lt;/P&gt;&lt;P&gt;        call function 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;          exporting&lt;/P&gt;&lt;P&gt;            wait          = c_cons_x&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           RETURN        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 10:11:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changes-commit-work-strange-behaviour/m-p/2374789#M526478</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2007-06-13T10:11:57Z</dc:date>
    </item>
  </channel>
</rss>

