<?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: In A071 table, Sales unit (VRKME) not getting inserted through BAPI BAPI_PRICES_CONDITIONS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-a071-table-sales-unit-vrkme-not-getting-inserted-through-bapi-bapi/m-p/12724648#M2020031</link>
    <description>&lt;P&gt;Resolved,&lt;/P&gt;&lt;P&gt;The VRKEY was incorrect. Added Sales unit in the key.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONCATENATE '6000' '10' iv_werks ls_input-matnr ls_input-vrkme&lt;BR /&gt;    INTO lv_varkey.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The VRKEY combination can be checked in table &lt;B&gt;T681E. &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2154811-image.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2023 09:17:47 GMT</pubDate>
    <dc:creator>former_member539645</dc:creator>
    <dc:date>2023-03-28T09:17:47Z</dc:date>
    <item>
      <title>In A071 table, Sales unit (VRKME) not getting inserted through BAPI BAPI_PRICES_CONDITIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-a071-table-sales-unit-vrkme-not-getting-inserted-through-bapi-bapi/m-p/12724647#M2020030</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I Am trying to insert condition record using BAPI&lt;STRONG&gt; BAPI_PRICES_CONDITIONS &lt;/STRONG&gt;but Sales unit (VRKME) field in table &lt;STRONG&gt;A071 &lt;/STRONG&gt;is not getting updated its coming blank.&lt;/P&gt;
  &lt;P&gt;Below is the code snippet.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;ls_bapicondct-operation = '009'.&lt;BR /&gt;    ls_bapicondct-cond_usage = 'A'.&lt;BR /&gt;    ls_bapicondct-table_no = '071'.&lt;BR /&gt;    ls_bapicondct-applicatio = 'V'.&lt;BR /&gt;    ls_bapicondct-cond_type = 'VKA0'.&lt;BR /&gt;    CONCATENATE '6000' '10' iv_werks ls_input-matnr&lt;BR /&gt;    INTO ls_bapicondct-varkey.&lt;BR /&gt;    ls_bapicondct-valid_to = sy-datum.&lt;BR /&gt;    ls_bapicondct-valid_from = sy-datum.&lt;BR /&gt;    ls_bapicondct-cond_no = '$000000001'.&lt;BR /&gt;    APPEND ls_bapicondct TO lt_bapicondct.&lt;BR /&gt;&lt;BR /&gt;    ls_bapicondhd-operation = '009'.&lt;BR /&gt;    ls_bapicondhd-cond_no = '$000000001'.&lt;BR /&gt;    ls_bapicondhd-created_by = sy-uname.&lt;BR /&gt;    ls_bapicondhd-creat_date = sy-datum.&lt;BR /&gt;    ls_bapicondhd-cond_usage = 'A'.&lt;BR /&gt;    ls_bapicondhd-table_no = '071'.&lt;BR /&gt;    ls_bapicondhd-applicatio = 'V'.&lt;BR /&gt;    ls_bapicondhd-cond_type = 'VKA0'.&lt;BR /&gt;    CONCATENATE '6000' '10' iv_werks ls_input-matnr&lt;BR /&gt;    INTO ls_bapicondhd-varkey.&lt;BR /&gt;    ls_bapicondhd-valid_from = sy-datum.&lt;BR /&gt;    ls_bapicondhd-valid_to = sy-datum.&lt;BR /&gt;    APPEND ls_bapicondhd TO lt_bapicondhd.&lt;BR /&gt;&lt;BR /&gt;    ls_bapicondit-operation = '009'.&lt;BR /&gt;    ls_bapicondit-cond_no = '$000000001'.&lt;BR /&gt;    ls_bapicondit-cond_count = '01'.&lt;BR /&gt;    ls_bapicondit-applicatio = 'V'.&lt;BR /&gt;    ls_bapicondit-cond_type = 'VKA0'.&lt;BR /&gt;    ls_bapicondit-scaletype = 'A'.&lt;BR /&gt;    ls_bapicondit-scalebasin  = ''.&lt;BR /&gt;    ls_bapicondit-scale_qty = '0'.&lt;BR /&gt;    ls_bapicondit-calctypcon = 'C'.&lt;BR /&gt;    ls_bapicondit-cond_value = '10.00'.&lt;BR /&gt;    ls_bapicondit-condcurr = 'EUR'.&lt;BR /&gt;    ls_bapicondit-cond_p_unt = '1'.&lt;BR /&gt;    ls_bapicondit-cond_unit = 'KG'.&lt;BR /&gt;    APPEND ls_bapicondit TO lt_bapicondit.&lt;BR /&gt; &lt;BR /&gt;    CALL FUNCTION 'BAPI_PRICES_CONDITIONS'&lt;BR /&gt;*   EXPORTING&lt;BR /&gt;*     PI_INITIALMODE             = ' '&lt;BR /&gt;*     PI_BLOCKNUMBER             =&lt;BR /&gt;*     PI_PHYSICAL_DELETION       =&lt;BR /&gt;    TABLES&lt;BR /&gt;      ti_bapicondct              = lt_bapicondct&lt;BR /&gt;      ti_bapicondhd              = lt_bapicondhd&lt;BR /&gt;      ti_bapicondit              = lt_bapicondit&lt;BR /&gt;      ti_bapicondqs              = lt_bapicondqs&lt;BR /&gt;      ti_bapicondvs              = lt_bapicondvs&lt;BR /&gt;      to_bapiret2                = it_return&lt;BR /&gt;      to_bapiknumhs              = lt_bapiknumhs&lt;BR /&gt;      to_mem_initial             = lt_mem_initial&lt;BR /&gt;   EXCEPTIONS&lt;BR /&gt;     update_error               = 1&lt;BR /&gt;     OTHERS                     = 2.&lt;BR /&gt;    &lt;BR /&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;*   Implement suitable error handling here&lt;BR /&gt;    ENDIF.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;  &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Mar 2023 07:29:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-a071-table-sales-unit-vrkme-not-getting-inserted-through-bapi-bapi/m-p/12724647#M2020030</guid>
      <dc:creator>former_member539645</dc:creator>
      <dc:date>2023-03-28T07:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: In A071 table, Sales unit (VRKME) not getting inserted through BAPI BAPI_PRICES_CONDITIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-a071-table-sales-unit-vrkme-not-getting-inserted-through-bapi-bapi/m-p/12724648#M2020031</link>
      <description>&lt;P&gt;Resolved,&lt;/P&gt;&lt;P&gt;The VRKEY was incorrect. Added Sales unit in the key.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONCATENATE '6000' '10' iv_werks ls_input-matnr ls_input-vrkme&lt;BR /&gt;    INTO lv_varkey.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The VRKEY combination can be checked in table &lt;B&gt;T681E. &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2154811-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 09:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-a071-table-sales-unit-vrkme-not-getting-inserted-through-bapi-bapi/m-p/12724648#M2020031</guid>
      <dc:creator>former_member539645</dc:creator>
      <dc:date>2023-03-28T09:17:47Z</dc:date>
    </item>
  </channel>
</rss>

