<?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: BAPI_PO_CREATE commiting problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714200#M1297077</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;You're right, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but u need to decide what it's better for you: &lt;/P&gt;&lt;P&gt;You must accept a compromise beetween performance and the needs of your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2009 12:34:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-04T12:34:53Z</dc:date>
    <item>
      <title>BAPI_PO_CREATE commiting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714191#M1297068</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;I have a little problem with BAPI_PO_CREATE FM. Purchase order was generated and there is a new number of that order.&lt;/P&gt;&lt;P&gt;After that I have BAPI_TRANSACTION_COMMIT function.&lt;/P&gt;&lt;P&gt;The problem is when I want to select some data from EKKO/EKPO tables after order was created.&lt;/P&gt;&lt;P&gt;There is no PO in that tables. When I wrote : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WAIT UP TO 5 SECONDS&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; everything is 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>Thu, 04 Jun 2009 10:28:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714191#M1297068</guid>
      <dc:creator>daniel_duras2</dc:creator>
      <dc:date>2009-06-04T10:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE commiting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714192#M1297069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So what i a problem. some time it takes few mil seconds to save the data at database level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Atul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 10:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714192#M1297069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T10:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE commiting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714193#M1297070</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;When u call the BAPI for the COMMIT u should check the parameter for WAIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 10:33:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714193#M1297070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T10:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE commiting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714194#M1297071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;   I think After immediately creating PO you try to Retrieve From Table It need Some Seconds To select after Commit So if you Want to retrieve immediately after creating you have to give wait Statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 10:33:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714194#M1297071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T10:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE commiting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714195#M1297072</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 understand from your query that the PO number is getting generated but not storing in table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i to faced the alike issue ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used statement &lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;wait up to 2 seconds.&lt;/P&gt;&lt;P&gt;commit work. " use bapi commit work.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; thanks "&amp;amp; regards,&lt;/P&gt;&lt;P&gt;kat k.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 10:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714195#M1297072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T10:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE commiting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714196#M1297073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All right, but after BAPI_TRANSACTION_COMMIT (even with " wait = 'X' ") all data should be saved ...&lt;/P&gt;&lt;P&gt;When You will generate a great many orders, time which is need to save all data will be longer ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 10:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714196#M1297073</guid>
      <dc:creator>daniel_duras2</dc:creator>
      <dc:date>2009-06-04T10:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE commiting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714197#M1297074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All right, but after BAPI_TRANSACTION_COMMIT (even with " wait = 'X' ") all data should be saved ...&lt;/P&gt;&lt;P&gt;When You will generate a great many orders, time which is need to save all data will be longer ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 10:36:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714197#M1297074</guid>
      <dc:creator>daniel_duras2</dc:creator>
      <dc:date>2009-06-04T10:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE commiting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714198#M1297075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;                WAIT   = 'X'&lt;/P&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;                RETURN = BAPIRETURN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 12:12:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714198#M1297075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T12:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE commiting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714199#M1297076</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 using,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

BAPI_TRANSACTION_COMMIT

There will be one parameter, wait
In that you can give the duration like
5 secs or so before commiting the 
transaction.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&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;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 12:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714199#M1297076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T12:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE commiting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714200#M1297077</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;You're right, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but u need to decide what it's better for you: &lt;/P&gt;&lt;P&gt;You must accept a compromise beetween performance and the needs of your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 12:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714200#M1297077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T12:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE commiting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714201#M1297078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if I will have some DB update and after this I have COMMIT WORK AND WAIT command I need to wait some time to saving data ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 12:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714201#M1297078</guid>
      <dc:creator>daniel_duras2</dc:creator>
      <dc:date>2009-06-04T12:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE commiting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714202#M1297079</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;No! Because you're program'll wait for the end of saving data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 12:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714202#M1297079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T12:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE commiting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714203#M1297080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also the other BAPI_PO_CREATE1 can have this issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can be 'solved' like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*   Wait until it is REALLY created and available... For some reason,
*   the purchase order that has been created is not yet available...
*   In case of really bad system performance this can be an issue!
*   For the upgrade, I increase the number of retries and the wait
*   time.
    do 12 times.
      select single ebeln from ekpo into exppurchaseorder
             where ebeln = exppurchaseorder.
      if sy-subrc = 0.
        exit.
      else.
        commit work and wait.                " &amp;lt;-- just to make sure...
        perform wait_sec.
      endif.
    enddo.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Silly, but it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 13:07:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714203#M1297080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T13:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE commiting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714204#M1297081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To max.&lt;/P&gt;&lt;P&gt;Exactly, same situation should be with BAPI_TRANSACTION_COMMIT with wait option... (I suppose).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see, that all proposals are simply of WAIT TO ..  SECONDS modyfications, but I dont want that method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 13:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714204#M1297081</guid>
      <dc:creator>daniel_duras2</dc:creator>
      <dc:date>2009-06-04T13:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE commiting problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714205#M1297082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not too sure about the WAIT option after the Commit. Just not sure if that solves the problem.&lt;/P&gt;&lt;P&gt;The reason why is that in the documentation for the BAPI there is no reference at all to the requirement of the COMMIT WORK statement... Usually it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Okay, checked and the COMMIT is necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We still chose to use the WAIT UP TO &amp;lt;n&amp;gt; SECONDS (after a read on the Database) to make absolutely &lt;EM&gt;sure&lt;/EM&gt; that the PO is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First do a COMMIT WORK AND WAIT, then read the Database, if the PO does not exist, then WAIT UP TO n SECONDS and repeat x times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not a nice solution, but it is safe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Edwin Vleeshouwers on Jun 4, 2009 3:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 13:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-commiting-problem/m-p/5714205#M1297082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T13:41:45Z</dc:date>
    </item>
  </channel>
</rss>

