<?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: PO Creation using BAPI_PO_CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-creation-using-bapi-po-create/m-p/3839064#M923075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you passing the wait parameter to the commit function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 May 2008 17:11:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-22T17:11:25Z</dc:date>
    <item>
      <title>PO Creation using BAPI_PO_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-creation-using-bapi-po-create/m-p/3839063#M923074</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 have a weird thing going on . I used BAPI_PO_CREATE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look a the return table it displays message . Standard PO created . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then using BAPI_TRANSACTION_COMMIT to commit it to the database . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After running the above Z program . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I go and alook for that po number in me23 or me23n or in table EKPO it says no document found .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if i check it after 2 - 3 minutes it shows the records in the database . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this usual to not be able to see the document saveed immediately after its creation ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I create a PO manually using me21 it save immediately . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Teresa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 17:07:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-creation-using-bapi-po-create/m-p/3839063#M923074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T17:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: PO Creation using BAPI_PO_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-creation-using-bapi-po-create/m-p/3839064#M923075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you passing the wait parameter to the commit function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 17:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-creation-using-bapi-po-create/m-p/3839064#M923075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T17:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: PO Creation using BAPI_PO_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-creation-using-bapi-po-create/m-p/3839065#M923076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes . I am passing the wait parameter . One more thing the BASIS Team applied some oracle patches recently . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a snap shot of my code . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_PO_CREATE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      PO_HEADER          = LS_PO_HEADER&lt;/P&gt;&lt;P&gt;      PO_HEADER_ADD_DATA = LS_PO_HEADER_ADD&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      PURCHASEORDER      = L_PURCHASEORDER&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      PO_ITEMS           = LT_PO_ITEMS&lt;/P&gt;&lt;P&gt;      PO_ITEM_ADD_DATA   = LT_PO_ITEMS_ADD&lt;/P&gt;&lt;P&gt;      PO_ITEM_SCHEDULES  = LT_PO_ITEMS_SCHED&lt;/P&gt;&lt;P&gt;      RETURN             = LT_RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 17:21:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-creation-using-bapi-po-create/m-p/3839065#M923076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T17:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: PO Creation using BAPI_PO_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-creation-using-bapi-po-create/m-p/3839066#M923077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Teresa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as far as I remember, you don't have to use the "BAPI_TRANSACTION_COMMIT" after using the "BAPI_PO_CREATE", as the "BAPI_PO_CREATE" performs the "Commit", when no errors occur (there's also an OSS note about this, as it's not "BAPI-Standard").&lt;/P&gt;&lt;P&gt;I would try w/o using "BAPI_TRANSACTION_COMMIT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 17:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-creation-using-bapi-po-create/m-p/3839066#M923077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T17:39:55Z</dc:date>
    </item>
  </channel>
</rss>

