<?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 bapi_po_create1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854189#M1135128</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;   my bapi_po_create is working fine if its a PO contains a line item that is a service.but in cases where in a po,one line item is a service entry and other is not then BAPI is throwing error i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of account assignment, please enter acc. assignment data for item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what can be the reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Dec 2008 12:58:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-01T12:58:36Z</dc:date>
    <item>
      <title>bapi_po_create1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854189#M1135128</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;   my bapi_po_create is working fine if its a PO contains a line item that is a service.but in cases where in a po,one line item is a service entry and other is not then BAPI is throwing error i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of account assignment, please enter acc. assignment data for item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what can be the reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 12:58:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854189#M1135128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-01T12:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_po_create1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854190#M1135129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPORT  ZPURCHASEORDER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;header like BAPIMEPOHEADER,&lt;/P&gt;&lt;P&gt;headerx like BAPIMEPOHEADERX,&lt;/P&gt;&lt;P&gt;it_item like standard table of BAPIMEPOITEM,&lt;/P&gt;&lt;P&gt;it_itemx like standard table of BAPIMEPOITEMX,&lt;/P&gt;&lt;P&gt;return like standard table of BAPIRET2,&lt;/P&gt;&lt;P&gt;wa_item like BAPIMEPOITEM,&lt;/P&gt;&lt;P&gt;wa_itemx like BAPIMEPOITEMX,&lt;/P&gt;&lt;P&gt;p_int type i,&lt;/P&gt;&lt;P&gt;p_matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;p_pono like ekko-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF BAPIRETURN OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE BAPIRET2.&lt;/P&gt;&lt;P&gt;DATA: END OF BAPIRETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants:&lt;/P&gt;&lt;P&gt;c_x type c value 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;header-comp_code = '3000'.&lt;/P&gt;&lt;P&gt;header-doc_type = 'DP25'.&lt;/P&gt;&lt;P&gt;header-creat_date = sy-datum.&lt;/P&gt;&lt;P&gt;header-item_intvl = '10'.&lt;/P&gt;&lt;P&gt;header-vendor = 'ARAMI-00'.&lt;/P&gt;&lt;P&gt;header-langu = sy-langu.&lt;/P&gt;&lt;P&gt;header-pmnttrms = '0001'.&lt;/P&gt;&lt;P&gt;header-purch_org = '3000'.&lt;/P&gt;&lt;P&gt;header-pur_group = '010'.&lt;/P&gt;&lt;P&gt;header-currency = 'USD'.&lt;/P&gt;&lt;P&gt;&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-item_intvl = c_x .&lt;/P&gt;&lt;P&gt;headerx-vendor = c_x.&lt;/P&gt;&lt;P&gt;headerx-langu = c_x.&lt;/P&gt;&lt;P&gt;headerx-pmnttrms = 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;&lt;/P&gt;&lt;P&gt;*LOOP AT it_final2 INTO wa_final2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_int = p_int + 10.&lt;/P&gt;&lt;P&gt;wa_item-po_item = p_int.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_matnr = 'T-SRM01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;input = p_matnr&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;output = p_matnr&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;length_error = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;*IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;*WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;wa_item-material = p_matnr.&lt;/P&gt;&lt;P&gt;wa_item-plant = '3200'.&lt;/P&gt;&lt;P&gt;wa_item-quantity = 100.&lt;/P&gt;&lt;P&gt;wa_item-conf_ctrl = 'Z01'.&lt;/P&gt;&lt;P&gt;wa_item-ACKN_REQD = 'X'.&lt;/P&gt;&lt;P&gt;WA_ITEM-ERS = ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_item TO it_item.&lt;/P&gt;&lt;P&gt;wa_itemx-po_item = p_int.&lt;/P&gt;&lt;P&gt;wa_itemx-material = c_x.&lt;/P&gt;&lt;P&gt;wa_itemx-plant = c_x .&lt;/P&gt;&lt;P&gt;wa_itemx-stge_loc = c_x .&lt;/P&gt;&lt;P&gt;wa_itemx-quantity = c_x .&lt;/P&gt;&lt;P&gt;wa_itemx-item_cat = c_x .&lt;/P&gt;&lt;P&gt;wa_itemx-acctasscat = c_x .&lt;/P&gt;&lt;P&gt;wa_itemx-conf_ctrl = 'X'.&lt;/P&gt;&lt;P&gt;wa_itemx-ACKN_REQD = 'X'.&lt;/P&gt;&lt;P&gt;WA_ITEMX-ERS = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_itemx TO it_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 = p_pono&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;return = return&lt;/P&gt;&lt;P&gt;poitem = it_item&lt;/P&gt;&lt;P&gt;poitemx = it_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; 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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ p_pono.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 13:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854190#M1135129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-01T13:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_po_create1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854191#M1135130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manikant &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don`t think it`s a BAPI issue ,It is something related to Data .&lt;/P&gt;&lt;P&gt;Check the data you are pasing to BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 20:12:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854191#M1135130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-01T20:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_po_create1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854192#M1135131</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;&lt;/P&gt;&lt;P&gt;   can BAPI_PO_CREATE1 can be used to create POs that consist of one line item that is a service line item and the other is a normal line item.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 05:45:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854192#M1135131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T05:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_po_create1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854193#M1135132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YA U CAN CRATE PO USING FM   'BAPI_PO_CREATE1'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 07:03:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854193#M1135132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T07:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_po_create1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854194#M1135133</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;&lt;/P&gt;&lt;P&gt;   can any one explain the logic when working with a PO that contains both a service line item and a normal PO item.&lt;/P&gt;&lt;P&gt;  as my BAPI is not able to work in cases where PO contains service and normal items.it is working fine if PO is only a service line item or if PO is a normal PO.&lt;/P&gt;&lt;P&gt;any clue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2008 12:01:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854194#M1135133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-02T12:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_po_create1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854195#M1135134</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;&lt;/P&gt;&lt;P&gt;   any solution ppl...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 04:44:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854195#M1135134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T04:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_po_create1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854196#M1135135</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;If the Item Category is D, in the PO, then you need to populate the Services structure also. The combinations vary. For example, the Account Assignment is N and Item Category is D, then You need to fill services. If it is only N, then you wont require services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, based on Item Category, the structures that are need to be filled changes. To get more clarity, I would suggest you create a PO or take the help of Functional guy and then see how the PO changes based on the combinations given in Account Assignment and Item Category.&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;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 04:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/4854196#M1135135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T04:49:33Z</dc:date>
    </item>
  </channel>
</rss>

