<?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_CREATE1 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-problem/m-p/8373991#M1642240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veronica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you mentioned that the problem starts with the second PO, the problem might be with clearing the internal tables (header &amp;amp; line item) passed in the second loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to ensure that all the variables used, work areas and internal tables are cleared before the second loop pass. Also, if you are using internal tables with header lines, then you need to ensure the clearing of header lines also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Verify this in debugging. If the problem still persists, post your code as I've been using 'BAPI_PO_CREATE1' without any problems for quite sometime.&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;Pranav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2011 04:51:14 GMT</pubDate>
    <dc:creator>former_member222709</dc:creator>
    <dc:date>2011-12-07T04:51:14Z</dc:date>
    <item>
      <title>BAPI_PO_CREATE1 problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-problem/m-p/8373989#M1642238</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 use a BAPI : &lt;STRONG&gt;BAPI_PO_CREATE1&lt;/STRONG&gt; in my program of data recovery. I have a csv file with 3 POs... The data is the same, N° of PO is different. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I want launch the BAPI 2 ou 3 times (in LOOP), the first time it's ok, i've got a PO created. The second time I have a problem in a ACCOUNT table... The data is good, because I tested I separetely. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can cause a problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks beforehand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Veronica&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 16:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-problem/m-p/8373989#M1642238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-06T16:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1 problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-problem/m-p/8373990#M1642239</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;Are you using  BAPI_TRANSACTION_COMMIT after BAPI_PO_CREATE1.&lt;/P&gt;&lt;P&gt;Because i think problem is with the locking of Table so first try to use BAPI_TRANSACTION_COMMIT with wait.&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          WAIT          = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If after this also you aren't get rid from this try to use FM "DEQUEUE_ALL".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 19:09:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-problem/m-p/8373990#M1642239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-06T19:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1 problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-problem/m-p/8373991#M1642240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veronica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you mentioned that the problem starts with the second PO, the problem might be with clearing the internal tables (header &amp;amp; line item) passed in the second loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to ensure that all the variables used, work areas and internal tables are cleared before the second loop pass. Also, if you are using internal tables with header lines, then you need to ensure the clearing of header lines also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Verify this in debugging. If the problem still persists, post your code as I've been using 'BAPI_PO_CREATE1' without any problems for quite sometime.&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;Pranav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 04:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-problem/m-p/8373991#M1642240</guid>
      <dc:creator>former_member222709</dc:creator>
      <dc:date>2011-12-07T04:51:14Z</dc:date>
    </item>
  </channel>
</rss>

