<?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 using  function module &amp;quot;rv_condition_copy&amp;quot; in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-quot-rv-condition-copy-quot/m-p/1872274#M367166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls help me out in using the FM "rv_condition_copy"...... the problem is that when i m using it in a report and passing it "valid on" and "valid to" to change dates of an existing record of in tables "A880" , it creates a new record along with the existing one .....pls help me out that wat all parameters shud i pass so that it doesnt create d above problem ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        swapnil kubal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        swapnil kubal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2007 11:30:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-01T11:30:43Z</dc:date>
    <item>
      <title>using  function module "rv_condition_copy"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-quot-rv-condition-copy-quot/m-p/1872274#M367166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls help me out in using the FM "rv_condition_copy"...... the problem is that when i m using it in a report and passing it "valid on" and "valid to" to change dates of an existing record of in tables "A880" , it creates a new record along with the existing one .....pls help me out that wat all parameters shud i pass so that it doesnt create d above problem ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        swapnil kubal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        swapnil kubal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 11:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-quot-rv-condition-copy-quot/m-p/1872274#M367166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T11:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: using  function module "rv_condition_copy"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-quot-rv-condition-copy-quot/m-p/1872275#M367167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the fm RV_CONDITION_FIELD_CHANGE instead.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 11:34:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-quot-rv-condition-copy-quot/m-p/1872275#M367167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T11:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: using  function module "rv_condition_copy"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-quot-rv-condition-copy-quot/m-p/1872276#M367168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Look at the below thread ....&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="1893408"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 11:34:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-quot-rv-condition-copy-quot/m-p/1872276#M367168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T11:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: using  function module "rv_condition_copy"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-quot-rv-condition-copy-quot/m-p/1872277#M367169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swapnil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if the below code can help you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS:&lt;/P&gt;&lt;P&gt;CON_A(1) TYPE C VALUE 'A',&lt;/P&gt;&lt;P&gt;CON_B(1) TYPE C VALUE 'B',&lt;/P&gt;&lt;P&gt;CON_C TYPE C VALUE 'C',&lt;/P&gt;&lt;P&gt;CON_D TYPE C VALUE 'D',&lt;/P&gt;&lt;P&gt;CON_E TYPE C VALUE 'E',&lt;/P&gt;&lt;P&gt;CON_F TYPE C VALUE 'F',&lt;/P&gt;&lt;P&gt;CON_G TYPE C VALUE 'G',&lt;/P&gt;&lt;P&gt;CON_K TYPE C VALUE 'K',&lt;/P&gt;&lt;P&gt;CON_T TYPE C VALUE 'T',&lt;/P&gt;&lt;P&gt;CON_S(1) TYPE C VALUE 'S',&lt;/P&gt;&lt;P&gt;CON_V LIKE T681A-KAPPL VALUE 'V',&lt;/P&gt;&lt;P&gt;CON_X TYPE C VALUE 'x',&lt;/P&gt;&lt;P&gt;CON_XX TYPE C VALUE 'X',&lt;/P&gt;&lt;P&gt;CON_T074 LIKE T681-KOTABNR VALUE '074',&lt;/P&gt;&lt;P&gt;CON_PREF LIKE T685A-KSCHL VALUE 'PREF',&lt;/P&gt;&lt;P&gt;CON_ULTIMO LIKE RV13A-DATAB VALUE '99991231',&lt;/P&gt;&lt;P&gt;CON_DATA_LOG_NAME(8) TYPE C VALUE 'PREF',&lt;/P&gt;&lt;P&gt;CON_ERROR_LOG_NAME(8) TYPE C VALUE 'ERROR',&lt;/P&gt;&lt;P&gt;CON_CUSTOM_LOG_NAME(8) TYPE C VALUE 'P_CUSTOM'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Verkaufsmengeneinheit&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERFORM f3_vkme_ermitteln.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Hauswährung&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF t001w-werks NE cstmat-werks.&lt;/P&gt;&lt;P&gt;PERFORM f3_waehrung_ermitteln USING cstmat-werks.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;pro Zollgebiet Konditionssatz anlegen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT t_matwerte.&lt;/P&gt;&lt;P&gt;CHECK t_matwerte-noupd_cond IS INITIAL.&lt;/P&gt;&lt;P&gt;CLEAR: komk,&lt;/P&gt;&lt;P&gt;komp,&lt;/P&gt;&lt;P&gt;komg,&lt;/P&gt;&lt;P&gt;w_komv.&lt;/P&gt;&lt;P&gt;REFRESH w_komv.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Schlüssel füllen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;komg-werks = w_marc-werks.&lt;/P&gt;&lt;P&gt;komg-matnr = w_marc-matnr.&lt;/P&gt;&lt;P&gt;komg-gzolx = t_matwerte-gzolx.&lt;/P&gt;&lt;P&gt;komg-land1 = t001w-land1. "101298&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Preisinfo füllen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;w_komv-kappl = 'V '.&lt;/P&gt;&lt;P&gt;w_komv-kschl = con_pref.&lt;/P&gt;&lt;P&gt;IF t_matwerte-kp = kp_max.&lt;/P&gt;&lt;P&gt;w_komv-kpein = 1.&lt;/P&gt;&lt;P&gt;MOVE kp_max TO w_komv-kbetr.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;w_komv-kpein = pm_peinh.&lt;/P&gt;&lt;P&gt;COMPUTE w_komv-kbetr = t_matwerte-kp * pm_peinh / hlp_ameng.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF w_komv-kbetr = 0.&lt;/P&gt;&lt;P&gt;COMPUTE w_komv-kbetr = 1 / 100 * -1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;w_komv-waers = t001-waers.&lt;/P&gt;&lt;P&gt;w_komv-kmein = hlp_ame.&lt;/P&gt;&lt;P&gt;APPEND w_komv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK f3_kz_update_cond IS INITIAL OR&lt;/P&gt;&lt;P&gt;NOT pm_simu IS INITIAL.&lt;/P&gt;&lt;P&gt;IF NOT pm_mdmps IS INITIAL.&lt;/P&gt;&lt;P&gt;MOVE komg-werks TO bg_kond-werks.&lt;/P&gt;&lt;P&gt;MOVE komg-matnr TO bg_kond-matnr.&lt;/P&gt;&lt;P&gt;MOVE komg-gzolx TO bg_kond-gzolx.&lt;/P&gt;&lt;P&gt;MOVE w_komv-kpein TO bg_kond-kpein.&lt;/P&gt;&lt;P&gt;MOVE w_komv-kbetr TO bg_kond-kbetr.&lt;/P&gt;&lt;P&gt;MOVE w_komv-kmein TO bg_kond-kmein.&lt;/P&gt;&lt;P&gt;MOVE w_komv-waers TO bg_kond-waers.&lt;/P&gt;&lt;P&gt;*{ REPLACE D20K904946 1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;APPEND bg_kond.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Siemens: Fehlerkorektur SAP-Standard&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;READ TABLE BG_KOND TRANSPORTING NO FIELDS&lt;/P&gt;&lt;P&gt;WITH KEY WERKS = BG_KOND-WERKS&lt;/P&gt;&lt;P&gt;MATNR = BG_KOND-MATNR&lt;/P&gt;&lt;P&gt;GZOLX = BG_KOND-GZOLX&lt;/P&gt;&lt;P&gt;BINARY SEARCH.&lt;/P&gt;&lt;P&gt;INSERT BG_KOND INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;*} REPLACE&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK f3_kz_update_cond IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RV_CONDITION_COPY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;application = con_v&lt;/P&gt;&lt;P&gt;condition_table = con_t074 "Konditionstabelle&lt;/P&gt;&lt;P&gt;condition_type = con_pref "Konditionsart&lt;/P&gt;&lt;P&gt;date_from = sy-datlo "Von jetzt an&lt;/P&gt;&lt;P&gt;date_to = con_ultimo "Bis Ultimo&lt;/P&gt;&lt;P&gt;enqueue = 'X' "Sperren ist besser&lt;/P&gt;&lt;P&gt;i_komk = komk&lt;/P&gt;&lt;P&gt;i_komp = komp&lt;/P&gt;&lt;P&gt;key_fields = komg "Schlüssel&lt;/P&gt;&lt;P&gt;maintain_mode = 'A' "Lieber A als B&lt;/P&gt;&lt;P&gt;no_authority_check = 'X' "X wie nix&lt;/P&gt;&lt;P&gt;keep_old_records = ' '&lt;/P&gt;&lt;P&gt;OVERLAP_CONFIRMED = 'X'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;e_komk = komk&lt;/P&gt;&lt;P&gt;e_komp = komp&lt;/P&gt;&lt;P&gt;new_record = i_new_record&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;copy_records = w_komv&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;enqueue_on_record = 01&lt;/P&gt;&lt;P&gt;invalid_application = 02&lt;/P&gt;&lt;P&gt;invalid_condition_number = 03&lt;/P&gt;&lt;P&gt;invalid_condition_type = 04&lt;/P&gt;&lt;P&gt;no_authority_ekorg = 05&lt;/P&gt;&lt;P&gt;no_authority_kschl = 06&lt;/P&gt;&lt;P&gt;no_authority_vkorg = 07&lt;/P&gt;&lt;P&gt;no_selection = 08&lt;/P&gt;&lt;P&gt;table_not_valid = 09.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE sy-subrc.&lt;/P&gt;&lt;P&gt;WHEN 0.&lt;/P&gt;&lt;P&gt;WHEN OTHERS.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE A???&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RV_CONDITION_SAVE'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RV_CONDITION_RESET'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 11:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-quot-rv-condition-copy-quot/m-p/1872277#M367169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T11:37:58Z</dc:date>
    </item>
  </channel>
</rss>

