<?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: 'RV_CONDITION_COPY' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-condition-copy/m-p/2528675#M573120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. And I have problem with update dates in conditions.&lt;/P&gt;&lt;P&gt;Share please the decision of this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Dec 2007 15:23:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-17T15:23:03Z</dc:date>
    <item>
      <title>'RV_CONDITION_COPY'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-condition-copy/m-p/2528670#M573115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to maintain, not add, a condition (PREF) with a program. I take the function module 'RV_CONDITION_COPY' . If I take in this function modul the parameter maintain_mode 'A', it runs, if I take in this function modul the parameter maintain_mode 'B', only the field "valid to" isn't updated, the other fields are updated.&lt;/P&gt;&lt;P&gt;I call the function module:&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 = h2_datum&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 = 'B' "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;The field h2_datum is set to a date, but there is always the date '31.12.9999' in the condition.&lt;/P&gt;&lt;P&gt;Can someone help me ?&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 07:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-condition-copy/m-p/2528670#M573115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T07:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: 'RV_CONDITION_COPY'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-condition-copy/m-p/2528671#M573116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have exact the same problem..&lt;/P&gt;&lt;P&gt;in the help of the FM is noted that the fields date_to and date_from are only for new created records.&lt;/P&gt;&lt;P&gt;so where is the date field for edited records?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 14:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-condition-copy/m-p/2528671#M573116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T14:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: 'RV_CONDITION_COPY'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-condition-copy/m-p/2528672#M573117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now, I have taken a call transaction for the update the "valid to" field in the condition ! That's life, that's SAP...&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 05:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-condition-copy/m-p/2528672#M573117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T05:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: 'RV_CONDITION_COPY'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-condition-copy/m-p/2528673#M573118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same problem. Can someone share their knowledge here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 05:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-condition-copy/m-p/2528673#M573118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T05:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: 'RV_CONDITION_COPY'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-condition-copy/m-p/2528674#M573119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not able to update Kbter? any solution to this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my code-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_komg-kunnr = '0001000008'. " Cust number&lt;/P&gt;&lt;P&gt;ls_komg-matnr = 'PP500P3'. " Mat number&lt;/P&gt;&lt;P&gt;ls_komg-VKORG = 'PPC1'.&lt;/P&gt;&lt;P&gt;ls_komg-vtweg = 'BB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: Lt_komv,LS_KOMV.&lt;/P&gt;&lt;P&gt;ls_komv-kappl = 'V '. " Application V = Sales&lt;/P&gt;&lt;P&gt;ls_komv-kschl = 'PR00'. " Condition type&lt;/P&gt;&lt;P&gt;ls_komv-waers = 'USD'. " Currency&lt;/P&gt;&lt;P&gt;ls_komv-kmein = 'EA'. " Unit of measurement&lt;/P&gt;&lt;P&gt;ls_komv-kpein = '100'.&lt;/P&gt;&lt;P&gt;ls_komv-krech = 'C'. " calculation type;&lt;/P&gt;&lt;P&gt;"M = Quantity - monthy price&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LS_KOMV-KAWRT = '251.00'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ls_komv-kbetr = '121.50'. " new condition value&lt;/P&gt;&lt;P&gt;*LS_KOMV-KWERT_K = '251.10'.&lt;/P&gt;&lt;P&gt;*LS_KOMV-KNUMV ='0000008911'&lt;/P&gt;&lt;P&gt;append ls_komv to lt_komv.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CLEAR LT_KOMV.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 = 'V'&lt;/P&gt;&lt;P&gt;condition_table = '005' " cond. table&lt;/P&gt;&lt;P&gt;condition_type = 'PR00' " cond. type&lt;/P&gt;&lt;P&gt;date_from = '20070108' " valid on&lt;/P&gt;&lt;P&gt;date_to = '99991231' " valid to&lt;/P&gt;&lt;P&gt;enqueue = 'X' " lock entry&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_komk = ls_komk&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_komp = ls_komp&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;key_fields = ls_komg " key fields&lt;/P&gt;&lt;P&gt;maintain_mode = 'D' " A= create&lt;/P&gt;&lt;P&gt;" B= change,&lt;/P&gt;&lt;P&gt;" C= display&lt;/P&gt;&lt;P&gt;" D= create with reference&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;with reference&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;no_authority_check = 'X'&lt;/P&gt;&lt;P&gt;keep_old_records = 'X'&lt;/P&gt;&lt;P&gt;overlap_confirmed = 'X'&lt;/P&gt;&lt;P&gt;no_db_update = space&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;e_komk = ls_komk&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;e_komp = ls_komp&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;new_record = lv_new_record&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;copy_records = lS_komv&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ENQUEUE_ON_RECORD = 1&lt;/P&gt;&lt;P&gt;INVALID_APPLICATION = 2&lt;/P&gt;&lt;P&gt;INVALID_CONDITION_NUMBER = 3&lt;/P&gt;&lt;P&gt;INVALID_CONDITION_TYPE = 4&lt;/P&gt;&lt;P&gt;NO_SELECTION = 5&lt;/P&gt;&lt;P&gt;TABLE_NOT_VALID = 6&lt;/P&gt;&lt;P&gt;NO_AUTHORITY_EKORG = 7&lt;/P&gt;&lt;P&gt;NO_AUTHORITY_KSCHL = 8.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;necessary to write data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 01:39:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-condition-copy/m-p/2528674#M573119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T01:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: 'RV_CONDITION_COPY'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-condition-copy/m-p/2528675#M573120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. And I have problem with update dates in conditions.&lt;/P&gt;&lt;P&gt;Share please the decision of this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 15:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-condition-copy/m-p/2528675#M573120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-17T15:23:03Z</dc:date>
    </item>
  </channel>
</rss>

