<?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 values.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-values/m-p/4461769#M1057381</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;if these character type variables always contain numbers with decimals, than I would suggest to define variables type p with some decimals. Than move the values to these p variables and then you can compare.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Sep 2008 14:09:12 GMT</pubDate>
    <dc:creator>JozsefSzikszai</dc:creator>
    <dc:date>2008-09-16T14:09:12Z</dc:date>
    <item>
      <title>comparing values..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-values/m-p/4461768#M1057380</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 2 variables, one of type char 30 and another char 10. One has a value 0.220 and another has 0.22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I compare these two values, it seems it fails. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If var = var2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way where i can convert one of these into a format of the other just before comparing ? i cannot change the data types of these variables now as it will affect many parts of the related programs. I just need to typecast them to same width for comparison purpose only. any tips ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 14:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-values/m-p/4461768#M1057380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T14:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: comparing values..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-values/m-p/4461769#M1057381</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;if these character type variables always contain numbers with decimals, than I would suggest to define variables type p with some decimals. Than move the values to these p variables and then you can compare.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 14:09:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-values/m-p/4461769#M1057381</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-09-16T14:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: comparing values..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-values/m-p/4461770#M1057382</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 not sure , You can try this way-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:w_char1(30) type c value '0.220',&lt;/P&gt;&lt;P&gt;     w_char2(10) type c value '0.22'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if w_char1 CS w_char2.&lt;/P&gt;&lt;P&gt;   write:'OK'.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 14:12:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-values/m-p/4461770#M1057382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T14:12:19Z</dc:date>
    </item>
  </channel>
</rss>

