<?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: Comparing the field values. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081393#M1704386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Puneet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you be more specific?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Xineohpi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2012 09:50:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-10-30T09:50:13Z</dc:date>
    <item>
      <title>Comparing the field values.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081388#M1704381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where i need to find a value based on date range. I can get this value. The issue comes up when i need to find the previous value than this value. How can this be handled. Based on these values we would require to perform some calculations on 2 values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;puneet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 09:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081388#M1704381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-30T09:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing the field values.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081389#M1704382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you hold the values in 2 seperate variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 09:30:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081389#M1704382</guid>
      <dc:creator>kerem_kayacan</dc:creator>
      <dc:date>2012-10-30T09:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing the field values.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081390#M1704383</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;Can you explain it briefly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 09:30:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081390#M1704383</guid>
      <dc:creator>vinoth_rajendran2</dc:creator>
      <dc:date>2012-10-30T09:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing the field values.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081391#M1704384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: var1 type var_type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var2 type var_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE field INTO var1 WHERE key = condition1.&lt;/P&gt;&lt;P&gt;SELECT SINGLE field INTO var2 WHERE key = condition2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF var1 = var2.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 09:38:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081391#M1704384</guid>
      <dc:creator>kerem_kayacan</dc:creator>
      <dc:date>2012-10-30T09:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing the field values.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081392#M1704385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide more details on your requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 09:45:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081392#M1704385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-30T09:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing the field values.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081393#M1704386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Puneet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you be more specific?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Xineohpi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 09:50:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081393#M1704386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-30T09:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing the field values.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081394#M1704387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The specific requirement i have is that i need to add a new field in infoset query tool. This field would be required to hold the value of percentage change between one value(selected based on date range) and need to be compared with the previous value of annual salary. So for this i need to retrieve both the values and have them, what could be the best way to get the values from DB? Please suggest.&lt;/P&gt;&lt;P&gt;Hope i am able to make it clear.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;puneet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 10:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081394#M1704387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-30T10:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing the field values.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081395#M1704388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Puneet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Would it possible if you maintain custom table that keeps record of previous value and current value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you execute your program firt time then i guess both values ( previous and current) would be same and then you can write logic in your program to update this custom table with this values and also update infoset query with this 2 values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Deepti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 05:41:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081395#M1704388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-31T05:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing the field values.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081396#M1704389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It won't be possible solution, as it's just not required to compare the current and the last value. Consider a case it could be that there are 4 values and the comparison might be required between 2 or 1 etc..&lt;/P&gt;&lt;P&gt;So we might need to find the logic, plus it would be based on selection on dates which user enter's as per requirement to fetch the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Puneet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 10:49:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081396#M1704389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-31T10:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing the field values.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081397#M1704390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Puneet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to have 2 separate work area's for taking the values, lets say wa_current and wa_previous. You have already got the current value based on the date range. Now, using the start date STR_DATE, you need to get the previous value. This can be done by the simple select statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &amp;lt;fields&amp;gt; &lt;/P&gt;&lt;P&gt;FROM &amp;lt;table&amp;gt;&lt;/P&gt;&lt;P&gt;UPTO 1 ROWS&lt;/P&gt;&lt;P&gt;INTO wa_previous&lt;/P&gt;&lt;P&gt;WHERE &amp;lt;condition n&amp;gt; = &amp;lt;Value&amp;gt;&lt;/P&gt;&lt;P&gt;AND&amp;nbsp; &amp;lt;date condition field&amp;gt; LT &amp;lt;Start Date, STR_DATE&amp;gt; &lt;/P&gt;&lt;P&gt;ORDER BY &amp;lt;date field condition&amp;gt; DESCENDING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will get you the latest value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if you require from some infotype you can also use the macro RP-PROVIDE-FROM-LAST. The macro to be used is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RP-PROVIDE-FROM-LAST Pxxxx SPACE BEGDA ENDDA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here your BEGDA can be 1 to 10 years before ENDDA and the ENDDA should be 1 day less then STR_DATE. You can get the latest value required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hardik Mehta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 11:36:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081397#M1704390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-31T11:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing the field values.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081398#M1704391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok..tell me how you calculate current value based on date range. what's your logic for this?? Also&amp;nbsp; give me example that will explain wht is the current value and previous value you expect for date say 1/Nov/2012 entered by User of selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Deepti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 03:30:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081398#M1704391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-01T03:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing the field values.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081399#M1704392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's take this example of data available&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;record 1 -&amp;gt; 01/01/2005-01/08/2005&amp;nbsp;&amp;nbsp;&amp;nbsp; 50000&lt;/P&gt;&lt;P&gt;record 2 -&amp;gt; 02/08/2005-01/09/2007&amp;nbsp;&amp;nbsp;&amp;nbsp; 70000&lt;/P&gt;&lt;P&gt;record 3 -&amp;gt; 02/09/2007-01/10/2008&amp;nbsp;&amp;nbsp;&amp;nbsp; 80000&lt;/P&gt;&lt;P&gt;record 4 -&amp;gt; 02/10/2008-01/11/2009&amp;nbsp;&amp;nbsp;&amp;nbsp; 90000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now let's say the user queries on data in SAP reporting tool(ex PQAH) and gives the date range of query as 01.01.2003 to 01.01.2008 -&amp;gt; so as per this we need to use select statement to get the values and where condition would be our BEGDA. And as in reporting tools the data is displayed, this percentage change column would be a extra column added in infoset which will compare the 2 values and hold the value. &lt;/P&gt;&lt;P&gt;Hope i am able to explain you better now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 04:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081399#M1704392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-01T04:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing the field values.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081400#M1704393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Puneet, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for details..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For date 01.01.2003 to 01.01.2008, ideally you expect current value will be 200000 (approx) ( sum of record 1, 2 &amp;amp; 3) and Previous value?? Is there is any calculation for previous value. On what basis you want to calculate previous value?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Eventhough If we consider somehow you retrieve previous value then this will be applicable for date range 01.01.2003 to 01.01.2008.&amp;nbsp; what if User enters date range 5/01/2008 to 10/01/2012, then in that case which previous value you consider..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 05:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081400#M1704393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-01T05:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing the field values.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081401#M1704394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey deepti,&lt;/P&gt;&lt;P&gt;thanks for replying and digging in.. see the last column would be based on this logic... the previous value would be same as the value in record and no need to sum !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dates&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; change&lt;/P&gt;&lt;P&gt;record 1 -&amp;gt; 01/01/2005-01/08/2005&amp;nbsp;&amp;nbsp;&amp;nbsp; 50000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NA&lt;/P&gt;&lt;P&gt;record 2 -&amp;gt; 02/08/2005-01/09/2007&amp;nbsp;&amp;nbsp;&amp;nbsp; 70000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rcrd2-rcrd1&lt;/P&gt;&lt;P&gt;record 3 -&amp;gt; 02/09/2007-01/10/2008&amp;nbsp;&amp;nbsp;&amp;nbsp; 80000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rcrd3-rcrd2&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;record 4 -&amp;gt; 02/10/2008-01/11/2009&amp;nbsp;&amp;nbsp;&amp;nbsp; 90000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rcrd4-rcrd3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change column would hold a new value which is not provided by SAP, so this value will do the comparison between the amt's.&lt;/P&gt;&lt;P&gt;Hope this makes more clear.&lt;/P&gt;&lt;P&gt;thanks again..&lt;/P&gt;&lt;P&gt;-puneet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 06:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081401#M1704394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-01T06:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing the field values.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081402#M1704395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Puneet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Lets try this way..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get tables entries in internal table based on date range entered on selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to find previous values, we need to play around with internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort internal table either Ascending or Descending. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Read previous value based on sy-tabix. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( If you have sorted internal table ascending then get previous value = sy-tabix - 1, if internal table in sorted on descending then previous value will be = sy-tabix + 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope above solution solved this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 06:53:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-the-field-values/m-p/9081402#M1704395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-01T06:53:48Z</dc:date>
    </item>
  </channel>
</rss>

