<?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 Condition base value formula- VOFM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605293#M1277343</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 am trying to create a new formula to calculate the number of days a contract is  valid for in the VFOM transaction. Has anyone done this before and could suggest how to create the formula for  calculating the number of days a contract is valid for . Essentially we will be able to use the fields from KOMP to calculate how many days the contract is open for and then enter that number in xkwert but how do write down the formula if someone has done this before pls suggest .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2009 14:42:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-15T14:42:06Z</dc:date>
    <item>
      <title>Condition base value formula- VOFM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605293#M1277343</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 am trying to create a new formula to calculate the number of days a contract is  valid for in the VFOM transaction. Has anyone done this before and could suggest how to create the formula for  calculating the number of days a contract is valid for . Essentially we will be able to use the fields from KOMP to calculate how many days the contract is open for and then enter that number in xkwert but how do write down the formula if someone has done this before pls suggest .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 14:42:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605293#M1277343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T14:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Condition base value formula- VOFM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605294#M1277344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for reference: &lt;A href="http://saptechsolutions.com/pdf/VOFMFormulaRoutines.pdf" target="test_blank"&gt;http://saptechsolutions.com/pdf/VOFMFormulaRoutines.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 17:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605294#M1277344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T17:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Condition base value formula- VOFM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605295#M1277345</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;Thanks . But I need to create a formula or  aline of code that will calculate the number of days a contract is valid considering the fields vbak-guebg and vbak-gueen (valid from and to), I want to get the total number of days to be calculated in between these dates. Like 11/02/2007  to 04/05/2008. and store that in xkwert.Can anyone please help out please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 01:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605295#M1277345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T01:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Condition base value formula- VOFM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605296#M1277346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;We done like this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calculate Contract Period&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      date_diff = IT_REPORT-LV_ENDDATE - IT_REPORT-LV_STRTDATE. -- in days&lt;/P&gt;&lt;P&gt;      IT_REPORT-lv_CPERIOD = ( DATE_DIFF /  30  ). -- in months&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;end of Calculation of Contract Period&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this FM . &lt;/P&gt;&lt;P&gt;HR_99S_INTERVAL_BETWEEN_DATES&lt;/P&gt;&lt;P&gt;SD_DATETIME_DIFFERENCE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 04:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605296#M1277346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T04:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Condition base value formula- VOFM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605297#M1277347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Monika!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this will give the contract period in months right ? If I would like to get it in days for a period like 12/03/2006  to 02/11/2009 will it be giving the number of days or in someother format when I use the lines you have sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 14:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605297#M1277347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T14:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Condition base value formula- VOFM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605298#M1277348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moreso not every month is of 30 days and if we get like 2-3 years even the days in all the years are not the same. I need to get the correct number of days between the valid from and to dates in the contract.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 14:48:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605298#M1277348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T14:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Condition base value formula- VOFM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605299#M1277349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I ahve used the FM to get the number of days , but when I save and activate it , it says 'There is no main program for include RV63A904. How will I add that to the main program and which will be the main program for that, could someone please suggest as what to do 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>Thu, 21 May 2009 15:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605299#M1277349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T15:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Condition base value formula- VOFM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605300#M1277350</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;Sorry for late reply . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u add ur code in the loop where u r calculateing other values and appending it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have no idea about ur program . so how can i help u?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 03:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605300#M1277350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-22T03:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Condition base value formula- VOFM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605301#M1277351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monika!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added the following code for the formula to calculate the number of days between valiud from and to dates , the only thing I am wondering is as how to verify the contract number and item number of the contract enterd with this formula so that it calculates the number of days for the netred contract. KOMP and KOMK tables needs to be used to verify but how to verify is what I am looking for.&lt;/P&gt;&lt;P&gt;FORM FRM_KOND_BASIS_904.&lt;/P&gt;&lt;P&gt;  data: tp_days type komv-kwert.&lt;/P&gt;&lt;P&gt;  data: wa_vbak like vbak.&lt;/P&gt;&lt;P&gt;  data: tp_text(100) type c.&lt;/P&gt;&lt;P&gt;  clear   : wa_vbak, tp_text, xkwert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols : &amp;lt;f&amp;gt; type any.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get data from vbak&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    concatenate '(SAPMV45A)' 'XVBAK' into tp_text.&lt;/P&gt;&lt;P&gt;    assign (tp_text) to &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;select single * from vbak into wa_vbak where vbeln = komk-belnr .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   wa_vbak = &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if komk-belnr = wa_vbak-vbeln.&lt;/P&gt;&lt;P&gt;tp_days = wa_vbak-gueen - wa_vbak-guebg.&lt;/P&gt;&lt;P&gt;xkwert = ( tp_days ) * 100.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 15:50:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605301#M1277351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T15:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Condition base value formula- VOFM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605302#M1277352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 15:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605302#M1277352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T15:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Condition base value formula- VOFM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605303#M1277353</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;U have to use these code in the Loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Loop at It_vbak.
.
.
it_final-Contract_period = tp_days
Append it_final.
Endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 03:45:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605303#M1277353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T03:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Condition base value formula- VOFM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605304#M1277354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 20:06:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605304#M1277354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T20:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Condition base value formula- VOFM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605305#M1277355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will want to add 1 to tp_days. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(End_Date - Start_Date) + 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way you have it actually reduces the effective contract period by a day&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 16:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-base-value-formula-vofm/m-p/5605305#M1277355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T16:18:32Z</dc:date>
    </item>
  </channel>
</rss>

