<?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: Purchase order creation error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order-creation-error/m-p/5256057#M1214206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are not passing the table bapiekkn to FM BAPI_PO_CREATE. Check it once.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Feb 2009 04:43:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-25T04:43:17Z</dc:date>
    <item>
      <title>Purchase order creation error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order-creation-error/m-p/5256056#M1214205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, please see below code to create PO. PO is creating perfectly alright but some how Goods Receipt Check is not there in Delivery tab for line item. Could you please tell me how do i get that GR filed checked? I don't know what mistake i am making. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : I am trying to create PO aganist Contract and trying to create Standard order (NB) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form map_input_data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform fill_bapiekkoc. &lt;/P&gt;&lt;P&gt;perform fill_bapiekkoa. &lt;/P&gt;&lt;P&gt;perform fill_bapiekpoc. &lt;/P&gt;&lt;P&gt;perform fill_bapiekpoa. &lt;/P&gt;&lt;P&gt;perform fill_bapieket. &lt;/P&gt;&lt;P&gt;perform fill_bapiekkn. &lt;/P&gt;&lt;P&gt;perform fill_bapiekpotx. &lt;/P&gt;&lt;P&gt;*----CALL THE FUNCTION TO CREATE THE PURCHASEORDER &lt;/P&gt;&lt;P&gt;perform call_create_purchaseorder. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. " MAP_INPUT_DATA &lt;/P&gt;&lt;P&gt;_________________________________________ &lt;/P&gt;&lt;P&gt;form call_create_purchaseorder. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BAPI_PO_CREATE' &lt;/P&gt;&lt;P&gt;exporting &lt;/P&gt;&lt;P&gt;po_header = bapiekkoc &lt;/P&gt;&lt;P&gt;po_header_add_data = bapiekkoa &lt;/P&gt;&lt;P&gt;importing &lt;/P&gt;&lt;P&gt;purchaseorder = vbeln &lt;/P&gt;&lt;P&gt;tables &lt;/P&gt;&lt;P&gt;po_items = bapiekpoc &lt;/P&gt;&lt;P&gt;po_item_schedules = bapieket &lt;/P&gt;&lt;P&gt;return = bapireturn1 &lt;/P&gt;&lt;P&gt;exceptions &lt;/P&gt;&lt;P&gt;others = 1. &lt;/P&gt;&lt;P&gt;if sy-subrc = 0. &lt;/P&gt;&lt;P&gt;clear bapireturn1. &lt;/P&gt;&lt;P&gt;read table bapireturn1 index 1. &lt;/P&gt;&lt;P&gt;if bapireturn1-type = ' ' or bapireturn1-type = 'S'. &lt;/P&gt;&lt;P&gt;clear itab_message. &lt;/P&gt;&lt;P&gt;move vbeln to itab_message-vbeln. &lt;/P&gt;&lt;P&gt;move ' : PURCHASEORDER CREATED SUCCESSFULLY' to itab_message-mess. &lt;/P&gt;&lt;P&gt;append itab_message. &lt;/P&gt;&lt;P&gt;else. &lt;/P&gt;&lt;P&gt;clear itab_error. &lt;/P&gt;&lt;P&gt;move bapireturn1 to itab_error. &lt;/P&gt;&lt;P&gt;append itab_error. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;else. &lt;/P&gt;&lt;P&gt;write : / 'ERROR IN FUNCTION CALL'. &lt;/P&gt;&lt;P&gt;exit. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. " CALL_CREATE_PURCHASEORDER &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;form fill_bapiekkoc. &lt;/P&gt;&lt;P&gt;clear bapiekkoc. &lt;/P&gt;&lt;P&gt;bapiekkoc-doc_date = u201802/23/2009u2019. &lt;/P&gt;&lt;P&gt;bapiekkoc-doc_type = 'NB'. &lt;/P&gt;&lt;P&gt;move itab- to bapiekkoc-DOC_CAT. &lt;/P&gt;&lt;P&gt;move itab- to bapiekkoc-CO_CODE. &lt;/P&gt;&lt;P&gt;bapiekkoc-purch_org = '1000'. &lt;/P&gt;&lt;P&gt;bapiekkoc-pur_group = '001'. &lt;/P&gt;&lt;P&gt;move itab- to bapiekkoc-AGREEMENT. &lt;/P&gt;&lt;P&gt;bapiekkoc-vendor = 'SCM550-12'. &lt;/P&gt;&lt;P&gt;endform. " FILL_BAPIEKKOC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;form fill_bapiekpoc. &lt;/P&gt;&lt;P&gt;clear bapiekpoc. &lt;/P&gt;&lt;P&gt;bapiekpoc-po_item = '00010'. &lt;/P&gt;&lt;P&gt;move itab- to bapiekpoc-AGREEMENT. &lt;/P&gt;&lt;P&gt;move itab- to bapiekpoc-AGMT_ITEM. &lt;/P&gt;&lt;P&gt;bapiekpoc-plant = '1000'. &lt;/P&gt;&lt;P&gt;bapiekpoc-unit = 'EA'. &lt;/P&gt;&lt;P&gt;bapiekpoc-net_price = '100000'. &lt;/P&gt;&lt;P&gt;bapiekpoc-price_unit = '5'. &lt;/P&gt;&lt;P&gt;bapiekpoc-orderpr_un = 'EA' . &lt;/P&gt;&lt;P&gt;append bapiekpoc. &lt;/P&gt;&lt;P&gt;endform. " FILL_BAPIEKPOC &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;form fill_bapieket. &lt;/P&gt;&lt;P&gt;clear bapieket. &lt;/P&gt;&lt;P&gt;bapieket-po_item = '000010'. &lt;/P&gt;&lt;P&gt;bapieket-deliv_date = sy-datum. &lt;/P&gt;&lt;P&gt;append bapieket. &lt;/P&gt;&lt;P&gt;endform. " FILL_BAPIEKET &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;form fill_bapiekkn. &lt;/P&gt;&lt;P&gt;clear bapiekkn. &lt;/P&gt;&lt;P&gt;bapiekkn-po_item = '000010'. &lt;/P&gt;&lt;P&gt;move itab- to bapiekkn-G_L_ACCT. &lt;/P&gt;&lt;P&gt;move itab- to bapiekkn-COST_CTR. &lt;/P&gt;&lt;P&gt;move itab- to bapiekkn-GR_RCPT. &lt;/P&gt;&lt;P&gt;move itab- to bapiekkn-UNLOAD_PT. &lt;/P&gt;&lt;P&gt;move itab- to bapiekkn-CO_AREA. &lt;/P&gt;&lt;P&gt;append bapiekkn. &lt;/P&gt;&lt;P&gt;endform. " FILL_BAPIEKKN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 02:26:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order-creation-error/m-p/5256056#M1214205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T02:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Purchase order creation error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order-creation-error/m-p/5256057#M1214206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are not passing the table bapiekkn to FM BAPI_PO_CREATE. Check it once.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 04:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order-creation-error/m-p/5256057#M1214206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T04:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Purchase order creation error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order-creation-error/m-p/5256058#M1214207</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;Yes I am filling table bapiekkn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form fill_bapiekkn. &lt;/P&gt;&lt;P&gt;clear bapiekkn. &lt;/P&gt;&lt;P&gt;bapiekkn-po_item = '000010'. &lt;/P&gt;&lt;P&gt;move itab- to bapiekkn-G_L_ACCT. &lt;/P&gt;&lt;P&gt;move itab- to bapiekkn-COST_CTR. &lt;/P&gt;&lt;P&gt;move itab- to bapiekkn-GR_RCPT. &lt;/P&gt;&lt;P&gt;move itab- to bapiekkn-UNLOAD_PT. &lt;/P&gt;&lt;P&gt;move itab- to bapiekkn-CO_AREA. &lt;/P&gt;&lt;P&gt;append bapiekkn. &lt;/P&gt;&lt;P&gt;endform. " FILL_BAPIEKKN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 05:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order-creation-error/m-p/5256058#M1214207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T05:22:22Z</dc:date>
    </item>
  </channel>
</rss>

