<?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' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5690969#M1293198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: francesco aiello on May 25, 2009 10:38 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: francesco aiello on May 25, 2009 10:38 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 May 2009 08:38:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-25T08:38:22Z</dc:date>
    <item>
      <title>'BAPI_PO_CREATE1'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5690966#M1293195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;boys field 'doc_date'  'poheader' structure must be filled in the format of the sy-datum? or otherwise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 08:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5690966#M1293195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T08:23:57Z</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/5690967#M1293196</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;Check this&lt;/P&gt;&lt;P&gt; { wa_po_head-doc_type   = 'ZSKK'.&lt;/P&gt;&lt;P&gt;    wa_po_head-comp_code  = lv_bukrs.&lt;/P&gt;&lt;P&gt;    wa_po_head-vendor     = p_vendor.&lt;/P&gt;&lt;P&gt;    wa_po_head-purch_org  = wa_eban-ekorg.&lt;/P&gt;&lt;P&gt;    wa_po_head-pur_group  = wa_eban-ekgrp.&lt;/P&gt;&lt;P&gt;    wa_po_head-creat_date = sy-datum.&lt;/P&gt;&lt;P&gt;    wa_po_head-doc_date   = sy-datum.&lt;/P&gt;&lt;P&gt;*Start of code insertion by &lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;*Fill the STO header details.&lt;/P&gt;&lt;P&gt;    wa_po_head-doc_type   = 'ZSCT'.&lt;/P&gt;&lt;P&gt;    wa_po_head-comp_code  = lv_bukrs.&lt;/P&gt;&lt;P&gt;    wa_po_head-vendor     = p_vendor.&lt;/P&gt;&lt;P&gt;    wa_po_head-purch_org  = wa_eban-ekorg.&lt;/P&gt;&lt;P&gt;    wa_po_head-pur_group  = wa_eban-ekgrp.&lt;/P&gt;&lt;P&gt;    wa_po_head-creat_date = sy-datum.&lt;/P&gt;&lt;P&gt;    wa_po_head-doc_date   = sy-datum.&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;*End of code insertion by&lt;/P&gt;&lt;P&gt;*Fill the udpate structure&lt;/P&gt;&lt;P&gt;  wa_po_headx-doc_date   =  c_x.&lt;/P&gt;&lt;P&gt;  wa_po_headx-comp_code  =  c_x.&lt;/P&gt;&lt;P&gt;  wa_po_headx-doc_type   =  c_x.&lt;/P&gt;&lt;P&gt;  wa_po_headx-suppl_plnt = c_x.&lt;/P&gt;&lt;P&gt;  wa_po_headx-vendor     =  c_x.&lt;/P&gt;&lt;P&gt;  wa_po_headx-purch_org  =  c_x.&lt;/P&gt;&lt;P&gt;  wa_po_headx-pur_group  =  c_x.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; wa_po_headx-SUPPL_PLNT =  c_x.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ,,...&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_po_head&lt;/P&gt;&lt;P&gt;      poheaderx        = wa_po_headx&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      exppurchaseorder = gv_po_number&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      return           = gt_return&lt;/P&gt;&lt;P&gt;      poitem           = gt_poitem&lt;/P&gt;&lt;P&gt;      poitemx          = gt_poitemx&lt;/P&gt;&lt;P&gt;      poschedule       = gt_poschedule&lt;/P&gt;&lt;P&gt;      poschedulex      = gt_poschedulex&lt;/P&gt;&lt;P&gt;      poaccount        = gt_poaccount&lt;/P&gt;&lt;P&gt;      poaccountx       = gt_poaccountx&lt;/P&gt;&lt;P&gt;      potextitem       = gt_potextitem. }&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;MSC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 08:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5690967#M1293196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T08:27:34Z</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/5690968#M1293197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the bapi me the same error.&lt;/P&gt;&lt;P&gt;for the controlling area CA00 no control code.&lt;/P&gt;&lt;P&gt;I do not know about that act structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: francesco aiello on May 25, 2009 10:37 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 08:37:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5690968#M1293197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T08:37:31Z</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/5690969#M1293198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: francesco aiello on May 25, 2009 10:38 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: francesco aiello on May 25, 2009 10:38 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 08:38:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5690969#M1293198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T08:38:22Z</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/5690970#M1293199</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;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;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;constants:&lt;/P&gt;&lt;P&gt;c_x type c value 'X'.&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;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;p_int = p_int + 10.&lt;/P&gt;&lt;P&gt;wa_item-po_item = p_int.&lt;/P&gt;&lt;P&gt;p_matnr = 'T-SRM01'.&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;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;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;APPEND wa_itemx TO it_itemx.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL FUNCTION 'BAPI_PO_CREATE1'&lt;/STRONG&gt;&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; 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;write:/ p_pono.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 08:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5690970#M1293199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T08:41:08Z</dc:date>
    </item>
  </channel>
</rss>

