<?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: Problem with BAPI_CONTRACT_CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-contract-create/m-p/7887840#M1595498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Able to find out the reason for errors. Following is the issue which I got from one of the SDN posts(link provided below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main reason was that the Currency field in the Header strucutre was not filled. On filling the same, the error gets disappeared and it reappears if is removed. I never thought that could be the reason. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="9595897"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2011 12:16:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-16T12:16:04Z</dc:date>
    <item>
      <title>Problem with BAPI_CONTRACT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-contract-create/m-p/7887839#M1595497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      I am unable to create contract using the fn mod BAPI_CONTRACTE_CREATE.I am getting following errors. &lt;/P&gt;&lt;P&gt;I am unable to trace out why I am getting the first error. &lt;/P&gt;&lt;P&gt;Not sure why I am getting these errors though I have net price filled correctly in my file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) No instance of object type PurchasingContract has been created. External reference: # 1&lt;/P&gt;&lt;P&gt;2) Enter Net Price&lt;/P&gt;&lt;P&gt;3) Please check the price&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   *Header &lt;/P&gt;&lt;P&gt;    wa_contract_header-vendor       = wa_contract-vendor.&lt;/P&gt;&lt;P&gt;    wa_contract_header-doc_type     = wa_contract-agree_type .&lt;/P&gt;&lt;P&gt;    wa_contract_header-creat_date   = l_date.&lt;/P&gt;&lt;P&gt;    wa_contract_header-purch_org    = wa_contract-pur_org.&lt;/P&gt;&lt;P&gt;    wa_contract_header-pur_group    = wa_contract-pur_grp.&lt;/P&gt;&lt;P&gt;    wa_contract_header-vper_start   = l_date1.&lt;/P&gt;&lt;P&gt;    wa_contract_header-vper_end     = l_date2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   *Header_X&lt;/P&gt;&lt;P&gt;    wa_contract_header_x-vendor     = cns_x.&lt;/P&gt;&lt;P&gt;    wa_contract_header_x-doc_type   = cns_x.&lt;/P&gt;&lt;P&gt;    wa_contract_header_x-creat_date = cns_x.&lt;/P&gt;&lt;P&gt;    wa_contract_header_x-purch_org  = cns_x.&lt;/P&gt;&lt;P&gt;    wa_contract_header_x-pur_group  = cns_x.&lt;/P&gt;&lt;P&gt;    wa_contract_header_x-vper_start = cns_x.&lt;/P&gt;&lt;P&gt;    wa_contract_header_x-vper_end   = cns_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   *Item&lt;/P&gt;&lt;P&gt;    wa_contract_detail-item_no      = l_count.&lt;/P&gt;&lt;P&gt;    wa_contract_detail-material     = wa_contract-material.&lt;/P&gt;&lt;P&gt;    wa_contract_detail-plant        = wa_contract-plant.&lt;/P&gt;&lt;P&gt;    wa_contract_detail-stge_loc     = wa_contract-sto_loc.&lt;/P&gt;&lt;P&gt;    wa_contract_detail-po_unit      = wa_contract-uom.&lt;/P&gt;&lt;P&gt;    wa_contract_detail-net_price    = wa_contract-net_price.&lt;/P&gt;&lt;P&gt;    wa_contract_detail-target_qty   = wa_contract-qty.&lt;/P&gt;&lt;P&gt;    APPEND wa_contract_detail TO it_contract_detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   *Item_X&lt;/P&gt;&lt;P&gt;    wa_contract_detail_x-item_no      = l_count.&lt;/P&gt;&lt;P&gt;    wa_contract_detail_x-agmt_item    = cns_x.&lt;/P&gt;&lt;P&gt;    wa_contract_detail_x-item_nox     = cns_x.&lt;/P&gt;&lt;P&gt;    wa_contract_detail_x-material     = cns_x.&lt;/P&gt;&lt;P&gt;    wa_contract_detail_x-plant        = cns_x.&lt;/P&gt;&lt;P&gt;    wa_contract_detail_x-stge_loc     = cns_x.&lt;/P&gt;&lt;P&gt;    wa_contract_detail_x-po_unit      = cns_x.&lt;/P&gt;&lt;P&gt;    wa_contract_detail_x-net_price    = cns_x.&lt;/P&gt;&lt;P&gt;    wa_contract_detail_x-target_qty   = cns_x.&lt;/P&gt;&lt;P&gt;    APPEND wa_contract_detail_x TO it_contract_detail_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    *Account&lt;/P&gt;&lt;P&gt;     wa_contract_account-item_no = l_COUNT.&lt;/P&gt;&lt;P&gt;     APPEND wa_contract_account TO it_contract_account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   *Account_X&lt;/P&gt;&lt;P&gt;    wa_contract_account_x-item_no = l_COUNT.&lt;/P&gt;&lt;P&gt;    APPEND wa_contract_account_x TO it_contract_account_x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_CONTRACT_CREATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;      header                      = wa_contract_header&lt;/P&gt;&lt;P&gt;     headerx                      = wa_contract_header_x&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;   purchasingdocument             = v_ebeln&lt;/P&gt;&lt;P&gt;   exp_header                     = wa_headerout&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;     return                       = it_return&lt;/P&gt;&lt;P&gt;      item                        = it_contract_detail&lt;/P&gt;&lt;P&gt;      itemx                       = it_contract_detail_x&lt;/P&gt;&lt;P&gt;     account                      = it_contract_account&lt;/P&gt;&lt;P&gt;     accountx                     = it_contract_account_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 10:18:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-contract-create/m-p/7887839#M1595497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-16T10:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_CONTRACT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-contract-create/m-p/7887840#M1595498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Able to find out the reason for errors. Following is the issue which I got from one of the SDN posts(link provided below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main reason was that the Currency field in the Header strucutre was not filled. On filling the same, the error gets disappeared and it reappears if is removed. I never thought that could be the reason. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="9595897"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 12:16:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-contract-create/m-p/7887840#M1595498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-16T12:16:04Z</dc:date>
    </item>
  </channel>
</rss>

