<?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 system wrong when Create item text and header text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-system-wrong-when-create-item-text-and-header-text/m-p/1106982#M105046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leibnitz,&lt;/P&gt;&lt;P&gt;  I think you have to fill the potextheader as well.&lt;/P&gt;&lt;P&gt;This is what the documentation says.&lt;/P&gt;&lt;P&gt;(If you haven't missed it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;This parameter enables you to create header texts. The assignment of the text is carried out via a text ID. This identification number consists of the ID for the document type (a PO has F) and the text ID itself (example: F01). You can find these values in Customizing under Text Types for Header Texts in the node Texts for Purchase Orders .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case of item texts, PO_ITEM contains the item number of the purchasing document (in the case of header texts, the field PO_NUMBER is not to be populated).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If texts are to be changed with the Change method, only the complete text can be replaced. It is not possible to delete just one line, for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Examples of population of BAPI_PO_CREATE1 interface:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter: POTEXTHEADER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PO_NUMBER &lt;/P&gt;&lt;P&gt;PO_ITEM = 00000 &lt;/P&gt;&lt;P&gt;TEXT_ID = F01 &lt;/P&gt;&lt;P&gt;TEXT_FORM = * &lt;/P&gt;&lt;P&gt;EXT_LINE = HEADER TEXT &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter: POTEXTITEM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PO_NUMBER &lt;/P&gt;&lt;P&gt;PO_ITEM = 00010 &lt;/P&gt;&lt;P&gt;TEXT_ID = F05 &lt;/P&gt;&lt;P&gt;TEXT_FORM = * &lt;/P&gt;&lt;P&gt;EXT_LINE = ITEM TEXT, ITEM 00010 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2005 12:32:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-14T12:32:36Z</dc:date>
    <item>
      <title>BAPI_PO_CREATE1 system wrong when Create item text and header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-system-wrong-when-create-item-text-and-header-text/m-p/1106979#M105043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data:  i_potextitem LIKE bapimepotext OCCURS 0 ,&lt;/P&gt;&lt;P&gt;      wa_potextitem LIKE bapimepotext.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text information&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wa_potextitem-po_item = 10.&lt;/P&gt;&lt;P&gt;  wa_potextitem-text_id = 'F01'.&lt;/P&gt;&lt;P&gt;  wa_potextitem-text_form = '*'.&lt;/P&gt;&lt;P&gt;  wa_potextitem-text_line = 'test'.&lt;/P&gt;&lt;P&gt;  APPEND wa_potextitem TO i_potextitem.&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                     = wa_poheader&lt;/P&gt;&lt;P&gt;      poheaderx                    = wa_poheaderx&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;     return                       = i_return&lt;/P&gt;&lt;P&gt;     poitem                       = i_poitem&lt;/P&gt;&lt;P&gt;     poitemx                      = i_poitemx&lt;/P&gt;&lt;P&gt;     potextitem                   = i_potextitem&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;when I run it , come out the follow thing in the return message.&lt;/P&gt;&lt;P&gt;A ME                   009&lt;/P&gt;&lt;P&gt;System error (text name empty in text object EKPO and text ID F01).&lt;/P&gt;&lt;P&gt;when i do not pay the focous on potextitem, it runs well.&lt;/P&gt;&lt;P&gt;I don't know whether it's a system's bug,&lt;/P&gt;&lt;P&gt;my version is 4.6c&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 10:57:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-system-wrong-when-create-item-text-and-header-text/m-p/1106979#M105043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T10:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1 system wrong when Create item text and header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-system-wrong-when-create-item-text-and-header-text/m-p/1106980#M105044</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 think you should fill wa_potextitem-po_number as well.&lt;/P&gt;&lt;P&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;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 11:26:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-system-wrong-when-create-item-text-and-header-text/m-p/1106980#M105044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T11:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1 system wrong when Create item text and header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-system-wrong-when-create-item-text-and-header-text/m-p/1106981#M105045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it's creating po_number ,how can i get the po_number?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 12:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-system-wrong-when-create-item-text-and-header-text/m-p/1106981#M105045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T12:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1 system wrong when Create item text and header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-system-wrong-when-create-item-text-and-header-text/m-p/1106982#M105046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leibnitz,&lt;/P&gt;&lt;P&gt;  I think you have to fill the potextheader as well.&lt;/P&gt;&lt;P&gt;This is what the documentation says.&lt;/P&gt;&lt;P&gt;(If you haven't missed it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;This parameter enables you to create header texts. The assignment of the text is carried out via a text ID. This identification number consists of the ID for the document type (a PO has F) and the text ID itself (example: F01). You can find these values in Customizing under Text Types for Header Texts in the node Texts for Purchase Orders .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case of item texts, PO_ITEM contains the item number of the purchasing document (in the case of header texts, the field PO_NUMBER is not to be populated).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If texts are to be changed with the Change method, only the complete text can be replaced. It is not possible to delete just one line, for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Examples of population of BAPI_PO_CREATE1 interface:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter: POTEXTHEADER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PO_NUMBER &lt;/P&gt;&lt;P&gt;PO_ITEM = 00000 &lt;/P&gt;&lt;P&gt;TEXT_ID = F01 &lt;/P&gt;&lt;P&gt;TEXT_FORM = * &lt;/P&gt;&lt;P&gt;EXT_LINE = HEADER TEXT &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter: POTEXTITEM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PO_NUMBER &lt;/P&gt;&lt;P&gt;PO_ITEM = 00010 &lt;/P&gt;&lt;P&gt;TEXT_ID = F05 &lt;/P&gt;&lt;P&gt;TEXT_FORM = * &lt;/P&gt;&lt;P&gt;EXT_LINE = ITEM TEXT, ITEM 00010 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 12:32:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-system-wrong-when-create-item-text-and-header-text/m-p/1106982#M105046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T12:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1 system wrong when Create item text and header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-system-wrong-when-create-item-text-and-header-text/m-p/1106983#M105047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When PO gets created you will get message PO Number XXXXXXXXXXXXXX has been created. If you are getting that message then BAPI is executed successfully. But immediately after executing BAPI you have to execute BAPI_TRANSACTION_COMMIT so that the created PO gets committed in the Database. If you do not call Transaction commit then this will be rolled back when PO create Bapi is called again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 12:32:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-system-wrong-when-create-item-text-and-header-text/m-p/1106983#M105047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T12:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1 system wrong when Create item text and header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-system-wrong-when-create-item-text-and-header-text/m-p/1106984#M105048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, Ramesh,&lt;/P&gt;&lt;P&gt; Thank you very much, i forget to put&lt;/P&gt;&lt;P&gt; wa_poheader-status    = 'F'. &lt;/P&gt;&lt;P&gt; In BAPI_PO_CREATE  it looks like&lt;/P&gt;&lt;P&gt; wa_poheader-doc_cat   = 'F'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; now all the thing are well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; thx very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 13:10:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1-system-wrong-when-create-item-text-and-header-text/m-p/1106984#M105048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T13:10:29Z</dc:date>
    </item>
  </channel>
</rss>

