<?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 function module giving errors while creating PO? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-function-module-giving-errors-while-creating-po/m-p/5041227#M1172261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the Currency Key that exists in the table "TCURC".&lt;/P&gt;&lt;P&gt;If yes then Fetch the corresponding iso code from the "TCURC" then populate the ISO code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here ur populating Currency into Currency ISO, which is different. So first check for the appropriate ISO code then populate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jan 2009 13:25:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-12T13:25:28Z</dc:date>
    <item>
      <title>BAPI_PO_CREATE1 function module giving errors while creating PO?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-function-module-giving-errors-while-creating-po/m-p/5041225#M1172259</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 i am creating Purchase Order using BAPI_PO_CREATE1 function module it is giving the following errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-&amp;gt; Currency key is unknown&lt;/P&gt;&lt;P&gt;2-&amp;gt; No instance of object type PurchaseOrder has been created. External reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code written is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : cc TYPE i,&lt;/P&gt;&lt;P&gt;         l_lifnr LIKE lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT i_dbtab INTO wa_dbtab.&lt;/P&gt;&lt;P&gt;    cc = cc + 1.&lt;/P&gt;&lt;P&gt;    IF cc = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          input  = wa_dbtab-lifnr&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          output = l_lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*POPULATE HEADER DATA FOR PO&lt;/P&gt;&lt;P&gt;      header-comp_code = wa_dbtab-bukrs.&lt;/P&gt;&lt;P&gt;      header-doc_type   = wa_dbtab-bsart.           "Standard Order&lt;/P&gt;&lt;P&gt;      header-creat_date = sy-datum.&lt;/P&gt;&lt;P&gt;      header-vendor     = wa_dbtab-lifnr.&lt;/P&gt;&lt;P&gt;      header-purch_org  = wa_dbtab-ekorg.&lt;/P&gt;&lt;P&gt;      header-pur_group  = wa_dbtab-ekgrp.&lt;/P&gt;&lt;P&gt;      header-currency = wa_dbtab-currency.&lt;/P&gt;&lt;P&gt;      header-currency_iso = wa_dbtab-currency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*POPULATE HEADER FLAG.&lt;/P&gt;&lt;P&gt;      headerx-comp_code  = c_x.&lt;/P&gt;&lt;P&gt;      headerx-doc_type   = c_x.&lt;/P&gt;&lt;P&gt;      headerx-creat_date = c_x.&lt;/P&gt;&lt;P&gt;      headerx-vendor     = c_x.&lt;/P&gt;&lt;P&gt;      headerx-purch_org  = c_x.&lt;/P&gt;&lt;P&gt;      headerx-pur_group  = c_x.&lt;/P&gt;&lt;P&gt;      header-currency = c_x.&lt;/P&gt;&lt;P&gt;      header-currency_iso = c_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*POPULATE ITEM DATA.&lt;/P&gt;&lt;P&gt;    item-po_item  = wa_dbtab-item.&lt;/P&gt;&lt;P&gt;    item-material = wa_dbtab-matnr.&lt;/P&gt;&lt;P&gt;    item-plant    = wa_dbtab-werks.&lt;/P&gt;&lt;P&gt;    item-matl_group = wa_dbtab-mat_grp.&lt;/P&gt;&lt;P&gt;    item-quantity = wa_dbtab-menge.&lt;/P&gt;&lt;P&gt;    item-net_price   = wa_dbtab-netwr.&lt;/P&gt;&lt;P&gt;    APPEND item.&lt;/P&gt;&lt;P&gt;    CLEAR item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*POPULATE ITEM FLAG TABLE&lt;/P&gt;&lt;P&gt;    itemx-po_item    = wa_dbtab-item.&lt;/P&gt;&lt;P&gt;    itemx-po_itemx   = c_x.&lt;/P&gt;&lt;P&gt;    itemx-material   = c_x.&lt;/P&gt;&lt;P&gt;    itemx-plant      = c_x .&lt;/P&gt;&lt;P&gt;    itemx-matl_group = c_x.&lt;/P&gt;&lt;P&gt;    itemx-quantity   = c_x .&lt;/P&gt;&lt;P&gt;    itemx-net_price  = c_x.&lt;/P&gt;&lt;P&gt;    APPEND itemx.&lt;/P&gt;&lt;P&gt;    CLEAR itemx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_PO_CREATE1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      poheader         = header&lt;/P&gt;&lt;P&gt;      poheaderx        = headerx&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      exppurchaseorder = ponumber&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      return           = rettab&lt;/P&gt;&lt;P&gt;      poitem           = item&lt;/P&gt;&lt;P&gt;      poitemx          = itemx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM f_bapi_errors.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  IF bapi_err_count = 0.&lt;/P&gt;&lt;P&gt;    PERFORM bapi_commit.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     PERFORM f_bapi_errors.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    WRITE: 'Created Po no:', ponumber COLOR 5.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    PERFORM bapi_commit.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 13:10:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-function-module-giving-errors-while-creating-po/m-p/5041225#M1172259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T13:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1 function module giving errors while creating PO?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-function-module-giving-errors-while-creating-po/m-p/5041226#M1172260</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 this.&lt;/P&gt;&lt;P&gt; Populate ONLY the field "currency" and not also the field "currency_iso".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 13:19:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-function-module-giving-errors-while-creating-po/m-p/5041226#M1172260</guid>
      <dc:creator>andrea_galluccio2</dc:creator>
      <dc:date>2009-01-12T13:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1 function module giving errors while creating PO?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-function-module-giving-errors-while-creating-po/m-p/5041227#M1172261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the Currency Key that exists in the table "TCURC".&lt;/P&gt;&lt;P&gt;If yes then Fetch the corresponding iso code from the "TCURC" then populate the ISO code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here ur populating Currency into Currency ISO, which is different. So first check for the appropriate ISO code then populate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 13:25:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-function-module-giving-errors-while-creating-po/m-p/5041227#M1172261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T13:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1 function module giving errors while creating PO?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-function-module-giving-errors-while-creating-po/m-p/5041228#M1172262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1-&amp;gt; Currency key is unknown &lt;STRONG&gt;----&amp;gt; only pass the currency. like EUR ...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2-&amp;gt; No instance of object type PurchaseOrder has been created. External reference: ---&amp;gt; this is warning message not worry about this...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 14:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-function-module-giving-errors-while-creating-po/m-p/5041228#M1172262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T14:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1 function module giving errors while creating PO?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-function-module-giving-errors-while-creating-po/m-p/5041229#M1172263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even i passed only currency then also i got the below errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-&amp;gt; No instance of object type PurchaseOrder has been created. External reference:&lt;/P&gt;&lt;P&gt;2-&amp;gt; PO header data still faulty&lt;/P&gt;&lt;P&gt;3-&amp;gt; No master record exists for vendor 100017&lt;/P&gt;&lt;P&gt;4-&amp;gt; Vendor 100017 does not exist&lt;/P&gt;&lt;P&gt;5-&amp;gt; Can delivery date be met?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to rectify these errors. Is it any functional problem or data passing problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      header-comp_code = wa_dbtab-bukrs.&lt;/P&gt;&lt;P&gt;      header-doc_type   = wa_dbtab-bsart.           "Standard Order&lt;/P&gt;&lt;P&gt;      header-creat_date = sy-datum.&lt;/P&gt;&lt;P&gt;      header-vendor     = wa_dbtab-lifnr.&lt;/P&gt;&lt;P&gt;      header-purch_org  = wa_dbtab-ekorg.&lt;/P&gt;&lt;P&gt;      header-pur_group  = wa_dbtab-ekgrp.&lt;/P&gt;&lt;P&gt;      header-currency = wa_dbtab-currency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*POPULATE HEADER FLAG.&lt;/P&gt;&lt;P&gt;      headerx-comp_code  = c_x.&lt;/P&gt;&lt;P&gt;      headerx-doc_type   = c_x.&lt;/P&gt;&lt;P&gt;      headerx-creat_date = c_x.&lt;/P&gt;&lt;P&gt;      headerx-vendor     = c_x.&lt;/P&gt;&lt;P&gt;      headerx-purch_org  = c_x.&lt;/P&gt;&lt;P&gt;      headerx-pur_group  = c_x.&lt;/P&gt;&lt;P&gt;      headerX-currency = c_x.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     headerX-currency_iso = c_x.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*POPULATE ITEM DATA.&lt;/P&gt;&lt;P&gt;    item-po_item  = wa_dbtab-item.&lt;/P&gt;&lt;P&gt;    item-material = wa_dbtab-matnr.&lt;/P&gt;&lt;P&gt;    item-plant    = wa_dbtab-werks.&lt;/P&gt;&lt;P&gt;    item-matl_group = wa_dbtab-mat_grp.&lt;/P&gt;&lt;P&gt;    item-quantity = wa_dbtab-menge.&lt;/P&gt;&lt;P&gt;    item-net_price   = wa_dbtab-netwr.&lt;/P&gt;&lt;P&gt;    APPEND item.&lt;/P&gt;&lt;P&gt;    CLEAR item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*POPULATE ITEM FLAG TABLE&lt;/P&gt;&lt;P&gt;    itemx-po_item    = wa_dbtab-item.&lt;/P&gt;&lt;P&gt;    itemx-po_itemx   = c_x.&lt;/P&gt;&lt;P&gt;    itemx-material   = c_x.&lt;/P&gt;&lt;P&gt;    itemx-plant      = c_x .&lt;/P&gt;&lt;P&gt;    itemx-matl_group = c_x.&lt;/P&gt;&lt;P&gt;    itemx-quantity   = c_x .&lt;/P&gt;&lt;P&gt;    itemx-net_price  = c_x.&lt;/P&gt;&lt;P&gt;    APPEND itemx.&lt;/P&gt;&lt;P&gt;    CLEAR itemx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 03:10:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-function-module-giving-errors-while-creating-po/m-p/5041229#M1172263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T03:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1 function module giving errors while creating PO?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-function-module-giving-errors-while-creating-po/m-p/5041230#M1172264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANK U&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 04:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-function-module-giving-errors-while-creating-po/m-p/5041230#M1172264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T04:18:14Z</dc:date>
    </item>
  </channel>
</rss>

