<?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: RE:F module BAPI_PO_CREATE1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-f-module-bapi-po-create1/m-p/5385381#M1238250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you populate the CHANGE_ID field in POCOND?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2009 07:47:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-15T07:47:08Z</dc:date>
    <item>
      <title>RE:F module BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-f-module-bapi-po-create1/m-p/5385379#M1238248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to copy condition types from SRM to ERP.I need to create PO using BAPI_PO_CREATE1,But the condition type i am passing to FM(BAPI_PO_CREATE1) is not getting updated in the PO.So does anyone know what all data needs to be passed to pocond,pocondx and poitem so that the condion type i am passing from SRM gets updated in ERP accordingly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Alex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 07:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-f-module-bapi-po-create1/m-p/5385379#M1238248</guid>
      <dc:creator>alex_georgek</dc:creator>
      <dc:date>2009-03-30T07:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: RE:F module BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-f-module-bapi-po-create1/m-p/5385380#M1238249</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;*if sy-uname  'ABAP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*if program = 'ZPURCHASEORDER' .&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*raise cancelled.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;&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, 30 Mar 2009 07:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-f-module-bapi-po-create1/m-p/5385380#M1238249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T07:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: RE:F module BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-f-module-bapi-po-create1/m-p/5385381#M1238250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you populate the CHANGE_ID field in POCOND?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 07:47:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-f-module-bapi-po-create1/m-p/5385381#M1238250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T07:47:08Z</dc:date>
    </item>
  </channel>
</rss>

