<?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_CONTRACT_CREATE Does not fill NETPR field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-create-does-not-fill-netpr-field/m-p/12751043#M2021769</link>
    <description>&lt;P&gt;Hi everyone ,&lt;/P&gt;
  &lt;P&gt;I use BAPI_CONTRACT_CREATE to create a contract. And everything works properly as I want. Except the NETPR cell. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2229659-image-1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Even though I filled this field with the codes below, its value always appears as zero. &lt;/P&gt;
  &lt;P&gt;(I filled in the Account and Accounx tables because it was stated in a source that we need to fill in the Account table. I didn't normally use these tables.)&lt;/P&gt;
  &lt;P&gt;But no matter how hard I tried, I couldn't figure it out. can you help?&lt;/P&gt;
  &lt;P&gt;Thanks. &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;    ls_item-item_no   = lv_ctr_item.&lt;BR /&gt;        ls_item-material  = ls_accepted_items-ekpo-matnr.&lt;BR /&gt;        ls_item-plant     = ls_accepted_items-ekpo-werks.&lt;BR /&gt;        ls_item-stge_loc  = ls_accepted_items-ekpo-lgort.&lt;BR /&gt;        ls_item-target_qty  = ls_accepted_items-ekpo-menge. "?&lt;BR /&gt;        ls_item-preq_no   = ls_accepted_items-eban-banfn.&lt;BR /&gt;        ls_item-preq_item = ls_accepted_items-eban-bnfpo.&lt;BR /&gt;        ls_item-rfq_no    = ls_accepted_items-ekpo-ebeln.&lt;BR /&gt;        ls_item-rfq_item  = ls_accepted_items-ekpo-ebelp.&lt;BR /&gt;        ls_item-acctasscat = 'U'.&lt;BR /&gt;        ls_item-net_price  = CONV #( ls_accepted_items-ekpo-netpr ).&lt;BR /&gt;        ls_item-price_unit = ls_accepted_items-ekpo-peinh .&lt;BR /&gt;        ls_item-info_upd   = 'A'. "ÜY ile ya da ÜY olmadan güncelleme&lt;BR /&gt;        ls_item-prnt_price = 'X' .&lt;BR /&gt;        APPEND ls_item TO lt_item.&lt;BR /&gt;        CLEAR: ls_item.&lt;BR /&gt;&lt;BR /&gt;        ls_itemx-item_no    = lv_ctr_item.&lt;BR /&gt;        ls_itemx-item_nox   = lvc_x.&lt;BR /&gt;        ls_itemx-material   = lvc_x.&lt;BR /&gt;        ls_itemx-plant      = lvc_x .&lt;BR /&gt;        ls_itemx-stge_loc   = lvc_x .&lt;BR /&gt;        ls_itemx-target_qty   = lvc_x . "?&lt;BR /&gt;        ls_itemx-tax_code   = lvc_x .&lt;BR /&gt;        ls_itemx-item_cat   = lvc_x .&lt;BR /&gt;        ls_itemx-acctasscat = lvc_x .&lt;BR /&gt;        ls_itemx-preq_no    = lvc_x.&lt;BR /&gt;        ls_itemx-preq_item  = lvc_x.&lt;BR /&gt;        ls_itemx-rfq_no     = lvc_x.&lt;BR /&gt;        ls_itemx-rfq_item   = lvc_x.&lt;BR /&gt;        ls_itemx-acctasscat = lvc_x.&lt;BR /&gt;        ls_itemx-net_price  = lvc_x.&lt;BR /&gt;        ls_itemx-price_unit = lvc_x.&lt;BR /&gt;        ls_itemx-prnt_price = lvc_x .&lt;BR /&gt;        ls_itemx-info_upd   = lvc_x .&lt;BR /&gt;&lt;BR /&gt;        APPEND ls_itemx TO lt_itemx.&lt;BR /&gt;        CLEAR: ls_itemx.&lt;BR /&gt;&lt;BR /&gt;""" Account&lt;BR /&gt;        ls_account-item_no   = lv_ctr_item .&lt;BR /&gt;        ls_account-net_value = CONV #( ls_accepted_items-ekpo-netpr ) .&lt;BR /&gt;        APPEND ls_account TO lt_account .&lt;BR /&gt;        CLEAR: ls_account .&lt;BR /&gt;&lt;BR /&gt;        ls_accountx-item_no   = lv_ctr_item .&lt;BR /&gt;        ls_accountx-item_nox  = lvc_x.&lt;BR /&gt;        ls_accountx-net_value = lvc_x.&lt;BR /&gt;        APPEND ls_accountx TO lt_accountx .&lt;BR /&gt;        CLEAR: ls_accountx .&lt;BR /&gt;&lt;BR /&gt;      ENDLOOP.&lt;BR /&gt;&lt;BR /&gt;      CALL FUNCTION 'BAPI_CONTRACT_CREATE'&lt;BR /&gt;        EXPORTING&lt;BR /&gt;          header             = ls_header&lt;BR /&gt;          headerx            = ls_headerx&lt;BR /&gt;        IMPORTING&lt;BR /&gt;          purchasingdocument = lv_ex_ctr_number&lt;BR /&gt;          exp_header         = ls_header_exp&lt;BR /&gt;        TABLES&lt;BR /&gt;          return             = lt_return&lt;BR /&gt;          item               = lt_item&lt;BR /&gt;          itemx              = lt_itemx&lt;BR /&gt;          account            = lt_account&lt;BR /&gt;          accountx           = lt_accountx .&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 13 Nov 2023 09:46:18 GMT</pubDate>
    <dc:creator>Neithan</dc:creator>
    <dc:date>2023-11-13T09:46:18Z</dc:date>
    <item>
      <title>BAPI_CONTRACT_CREATE Does not fill NETPR field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-create-does-not-fill-netpr-field/m-p/12751043#M2021769</link>
      <description>&lt;P&gt;Hi everyone ,&lt;/P&gt;
  &lt;P&gt;I use BAPI_CONTRACT_CREATE to create a contract. And everything works properly as I want. Except the NETPR cell. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2229659-image-1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Even though I filled this field with the codes below, its value always appears as zero. &lt;/P&gt;
  &lt;P&gt;(I filled in the Account and Accounx tables because it was stated in a source that we need to fill in the Account table. I didn't normally use these tables.)&lt;/P&gt;
  &lt;P&gt;But no matter how hard I tried, I couldn't figure it out. can you help?&lt;/P&gt;
  &lt;P&gt;Thanks. &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;    ls_item-item_no   = lv_ctr_item.&lt;BR /&gt;        ls_item-material  = ls_accepted_items-ekpo-matnr.&lt;BR /&gt;        ls_item-plant     = ls_accepted_items-ekpo-werks.&lt;BR /&gt;        ls_item-stge_loc  = ls_accepted_items-ekpo-lgort.&lt;BR /&gt;        ls_item-target_qty  = ls_accepted_items-ekpo-menge. "?&lt;BR /&gt;        ls_item-preq_no   = ls_accepted_items-eban-banfn.&lt;BR /&gt;        ls_item-preq_item = ls_accepted_items-eban-bnfpo.&lt;BR /&gt;        ls_item-rfq_no    = ls_accepted_items-ekpo-ebeln.&lt;BR /&gt;        ls_item-rfq_item  = ls_accepted_items-ekpo-ebelp.&lt;BR /&gt;        ls_item-acctasscat = 'U'.&lt;BR /&gt;        ls_item-net_price  = CONV #( ls_accepted_items-ekpo-netpr ).&lt;BR /&gt;        ls_item-price_unit = ls_accepted_items-ekpo-peinh .&lt;BR /&gt;        ls_item-info_upd   = 'A'. "ÜY ile ya da ÜY olmadan güncelleme&lt;BR /&gt;        ls_item-prnt_price = 'X' .&lt;BR /&gt;        APPEND ls_item TO lt_item.&lt;BR /&gt;        CLEAR: ls_item.&lt;BR /&gt;&lt;BR /&gt;        ls_itemx-item_no    = lv_ctr_item.&lt;BR /&gt;        ls_itemx-item_nox   = lvc_x.&lt;BR /&gt;        ls_itemx-material   = lvc_x.&lt;BR /&gt;        ls_itemx-plant      = lvc_x .&lt;BR /&gt;        ls_itemx-stge_loc   = lvc_x .&lt;BR /&gt;        ls_itemx-target_qty   = lvc_x . "?&lt;BR /&gt;        ls_itemx-tax_code   = lvc_x .&lt;BR /&gt;        ls_itemx-item_cat   = lvc_x .&lt;BR /&gt;        ls_itemx-acctasscat = lvc_x .&lt;BR /&gt;        ls_itemx-preq_no    = lvc_x.&lt;BR /&gt;        ls_itemx-preq_item  = lvc_x.&lt;BR /&gt;        ls_itemx-rfq_no     = lvc_x.&lt;BR /&gt;        ls_itemx-rfq_item   = lvc_x.&lt;BR /&gt;        ls_itemx-acctasscat = lvc_x.&lt;BR /&gt;        ls_itemx-net_price  = lvc_x.&lt;BR /&gt;        ls_itemx-price_unit = lvc_x.&lt;BR /&gt;        ls_itemx-prnt_price = lvc_x .&lt;BR /&gt;        ls_itemx-info_upd   = lvc_x .&lt;BR /&gt;&lt;BR /&gt;        APPEND ls_itemx TO lt_itemx.&lt;BR /&gt;        CLEAR: ls_itemx.&lt;BR /&gt;&lt;BR /&gt;""" Account&lt;BR /&gt;        ls_account-item_no   = lv_ctr_item .&lt;BR /&gt;        ls_account-net_value = CONV #( ls_accepted_items-ekpo-netpr ) .&lt;BR /&gt;        APPEND ls_account TO lt_account .&lt;BR /&gt;        CLEAR: ls_account .&lt;BR /&gt;&lt;BR /&gt;        ls_accountx-item_no   = lv_ctr_item .&lt;BR /&gt;        ls_accountx-item_nox  = lvc_x.&lt;BR /&gt;        ls_accountx-net_value = lvc_x.&lt;BR /&gt;        APPEND ls_accountx TO lt_accountx .&lt;BR /&gt;        CLEAR: ls_accountx .&lt;BR /&gt;&lt;BR /&gt;      ENDLOOP.&lt;BR /&gt;&lt;BR /&gt;      CALL FUNCTION 'BAPI_CONTRACT_CREATE'&lt;BR /&gt;        EXPORTING&lt;BR /&gt;          header             = ls_header&lt;BR /&gt;          headerx            = ls_headerx&lt;BR /&gt;        IMPORTING&lt;BR /&gt;          purchasingdocument = lv_ex_ctr_number&lt;BR /&gt;          exp_header         = ls_header_exp&lt;BR /&gt;        TABLES&lt;BR /&gt;          return             = lt_return&lt;BR /&gt;          item               = lt_item&lt;BR /&gt;          itemx              = lt_itemx&lt;BR /&gt;          account            = lt_account&lt;BR /&gt;          accountx           = lt_accountx .&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Nov 2023 09:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-create-does-not-fill-netpr-field/m-p/12751043#M2021769</guid>
      <dc:creator>Neithan</dc:creator>
      <dc:date>2023-11-13T09:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CREATE Does not fill NETPR field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-create-does-not-fill-netpr-field/m-p/12751044#M2021770</link>
      <description>&lt;P&gt;Try to pass the relevant condition data (line item condition validity and line item condition) to BAPI. &lt;/P&gt;&lt;P&gt;Sometimes net price is based on conditions. It depends on config. Are you entering the net price while creating contract manually or it is automatically populated? If it is automatic then you have to pass the condition data to BAPI. &lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 15:43:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-create-does-not-fill-netpr-field/m-p/12751044#M2021770</guid>
      <dc:creator>thilakan_t</dc:creator>
      <dc:date>2023-11-13T15:43:51Z</dc:date>
    </item>
  </channel>
</rss>

