<?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_CUSTOMERRETURN_CREATE not updating net value and condition record. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customerreturn-create-not-updating-net-value-and-condition-record/m-p/12197836#M1981438</link>
    <description>&lt;P&gt;You are not populating any conditions via the BAPI.&lt;/P&gt;&lt;P&gt;Check in VA01 when you create a return order without reference, but with exactly the same data (customer, material, plant, pricing date, etc.) whether the condition record is determined.&lt;/P&gt;&lt;P&gt;You can also use the pricing determination analysis from VA02 of the problematic document and find out why your condition was not determined.&lt;/P&gt;&lt;P&gt;I hope that you do not expect that the pricing will be copied from the referenced document. This feature is not supported, read &lt;A href="https://launchpad.support.sap.com/#/notes/370988/E"&gt;370988 - BAPIs in SD: Creation with reference&lt;/A&gt; for workarounds.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2020 13:24:08 GMT</pubDate>
    <dc:creator>VeselinaPeykova</dc:creator>
    <dc:date>2020-02-07T13:24:08Z</dc:date>
    <item>
      <title>BAPI_CUSTOMERRETURN_CREATE not updating net value and condition record.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customerreturn-create-not-updating-net-value-and-condition-record/m-p/12197835#M1981437</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I am using the BAPI_CUSTOMERRETURN_CREATE for sales order return process to create sales order.&lt;/P&gt;
  &lt;P&gt;Although, the sales order is created but it is not updating net value and condition record. I am using the below code.&lt;/P&gt;
  &lt;P&gt;**HEADER DATA ************&lt;BR /&gt; wa_ord_header-doc_type = vbak-auart.&lt;BR /&gt; wa_ord_header-sales_org = vbak-vkorg.&lt;BR /&gt; wa_ord_header-distr_chan = vbak-vtweg.&lt;BR /&gt; wa_ord_header-division = vbak-spart.&lt;BR /&gt; wa_ord_header-ref_doc = it_vbrk-vbeln.&lt;BR /&gt; wa_ord_header-refdoc_cat = 'M'.&lt;BR /&gt; wa_ord_header-ord_reason = it_vbrk-augru. "wa_head-augru.&lt;BR /&gt; wa_ord_header-sd_doc_cat = 'H'.&lt;BR /&gt; * wa_ord_header-purch_date = sy-datum.&lt;BR /&gt; wa_ord_header-price_date = it_vbrk-fkdat. "wa_head-fkdat.&lt;BR /&gt; wa_ord_headerx-updateflag = 'I'.&lt;BR /&gt; wa_ord_headerx-doc_type = 'X'.&lt;BR /&gt; wa_ord_headerx-sales_org = 'X'.&lt;BR /&gt; wa_ord_headerx-distr_chan = 'X'.&lt;BR /&gt; wa_ord_headerx-division = 'X'.&lt;BR /&gt; wa_ord_headerx-ord_reason = 'X'.&lt;BR /&gt; wa_ord_headerx-ref_doc = 'X'.&lt;BR /&gt; wa_ord_headerx-refdoc_cat = 'X'.&lt;BR /&gt; wa_ord_headerx-sd_doc_cat = 'X'.&lt;BR /&gt; * wa_ord_headerx-purch_date = 'X'.&lt;BR /&gt; wa_ord_headerx-price_date = 'X'.&lt;BR /&gt; &lt;BR /&gt; wa_ord_header-currency = 'INR'.&lt;BR /&gt; wa_ord_headerx-currency = 'X'.&lt;BR /&gt; &lt;BR /&gt; ** wa_auto_srn-bill_no = IT_VBRK-vbeln.&lt;BR /&gt; &lt;BR /&gt; READ TABLE it_pbcdgr INTO wa_item WITH KEY vbeln = it_vbrk-vbeln.&lt;BR /&gt; wa_ord_item-itm_number = wa_item-posnr.&lt;BR /&gt; wa_ord_item-material = wa_item-mcode.&lt;BR /&gt; wa_ord_item-plant = wa_item-werks.&lt;BR /&gt; * wa_ord_item-target_qty = wa_item-retqty.&lt;BR /&gt; wa_ord_item-target_qu = 'PC'. "wa_item-vrkme.&lt;BR /&gt; wa_ord_item-ref_doc = it_vbrk-vbeln.&lt;BR /&gt; wa_ord_item-ref_doc_it = wa_item-posnr.&lt;BR /&gt; wa_ord_item-ref_doc_ca = 'M'.&lt;BR /&gt; &lt;BR /&gt; wa_ord_item-ship_point = zpbcdgr-werks. "wa_item-vstel.&lt;BR /&gt; &lt;BR /&gt; wa_ord_item-SALES_UNIT = 'PC'. "wa_item-vstel. ++&lt;BR /&gt; wa_ord_itemx-ship_point = abap_true. "wa_item-vstel. ++&lt;BR /&gt; &lt;BR /&gt; wa_ord_itemx-itm_number = wa_item-posnr.&lt;BR /&gt; wa_ord_itemx-updateflag = 'I'.&lt;BR /&gt; wa_ord_itemx-material = 'X'.&lt;BR /&gt; wa_ord_itemx-plant = 'X'.&lt;BR /&gt; wa_ord_itemx-target_qty = 'X'.&lt;BR /&gt; wa_ord_itemx-target_qu = 'X'.&lt;BR /&gt; wa_ord_itemx-ref_doc = 'X'.&lt;BR /&gt; wa_ord_itemx-ref_doc_it = 'X'.&lt;BR /&gt; wa_ord_itemx-ref_doc_ca = 'X'.&lt;BR /&gt; &lt;BR /&gt; wa_schld-itm_number = wa_item-posnr.&lt;BR /&gt; wa_schld-sched_line = '0001'.&lt;BR /&gt; wa_schld-req_qty = wa_item-retqty.&lt;BR /&gt; &lt;BR /&gt; wa_schldx-itm_number = wa_item-posnr.&lt;BR /&gt; wa_schldx-sched_line = '0001'.&lt;BR /&gt; wa_schldx-req_qty = 'X'.&lt;BR /&gt; wa_schldx-updateflag = 'I'.&lt;BR /&gt; &lt;BR /&gt; APPEND wa_ord_item TO it_ord_item.&lt;BR /&gt; APPEND wa_ord_itemx TO it_ord_itemx.&lt;BR /&gt; APPEND wa_schld TO it_schld.&lt;BR /&gt; APPEND wa_schldx TO it_schldx.&lt;BR /&gt; CLEAR: wa_ord_item, wa_ord_itemx, wa_schld, wa_schldx.&lt;/P&gt;
  &lt;P&gt; wa_part-partn_role = 'AG'.&lt;BR /&gt; wa_part-partn_numb = it_vbrk-kunag.&lt;BR /&gt; APPEND wa_part TO it_part.&lt;BR /&gt; CLEAR wa_part.&lt;/P&gt;
  &lt;P&gt; CALL FUNCTION 'BAPI_CUSTOMERRETURN_CREATE'&lt;BR /&gt; EXPORTING&lt;BR /&gt; return_header_in = wa_ord_header&lt;BR /&gt; return_header_inx = wa_ord_headerx&lt;BR /&gt; convert = 'X'&lt;BR /&gt; IMPORTING&lt;BR /&gt; salesdocument = wa_vbeln&lt;BR /&gt; TABLES&lt;BR /&gt; return = it_ret1&lt;BR /&gt; return_items_in = it_ord_item&lt;BR /&gt; return_items_inx = it_ord_itemx&lt;BR /&gt; return_partners = it_part&lt;BR /&gt; return_schedules_in = it_schld&lt;BR /&gt; return_schedules_inx = it_schldx.&lt;/P&gt;
  &lt;P&gt; IF wa_vbeln IS NOT INITIAL.&lt;BR /&gt; CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;BR /&gt; EXPORTING&lt;BR /&gt; wait = '1'.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 13:12:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customerreturn-create-not-updating-net-value-and-condition-record/m-p/12197835#M1981437</guid>
      <dc:creator>former_member693451</dc:creator>
      <dc:date>2020-02-07T13:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CUSTOMERRETURN_CREATE not updating net value and condition record.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customerreturn-create-not-updating-net-value-and-condition-record/m-p/12197836#M1981438</link>
      <description>&lt;P&gt;You are not populating any conditions via the BAPI.&lt;/P&gt;&lt;P&gt;Check in VA01 when you create a return order without reference, but with exactly the same data (customer, material, plant, pricing date, etc.) whether the condition record is determined.&lt;/P&gt;&lt;P&gt;You can also use the pricing determination analysis from VA02 of the problematic document and find out why your condition was not determined.&lt;/P&gt;&lt;P&gt;I hope that you do not expect that the pricing will be copied from the referenced document. This feature is not supported, read &lt;A href="https://launchpad.support.sap.com/#/notes/370988/E"&gt;370988 - BAPIs in SD: Creation with reference&lt;/A&gt; for workarounds.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 13:24:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customerreturn-create-not-updating-net-value-and-condition-record/m-p/12197836#M1981438</guid>
      <dc:creator>VeselinaPeykova</dc:creator>
      <dc:date>2020-02-07T13:24:08Z</dc:date>
    </item>
  </channel>
</rss>

