<?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 numbers in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-numbers/m-p/2954514#M696865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Sep 2010 13:37:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-17T13:37:59Z</dc:date>
    <item>
      <title>comparing numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-numbers/m-p/2954510#M696861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The numbers i want to compare are in a database. i am using the select statement (ie) select * from gfffff&lt;/P&gt;&lt;P&gt;                     where (fieldname) = jhkll-(fieldname).&lt;/P&gt;&lt;P&gt;the other number has leading zeros but the otherone does not have. the data type of the numbers is c.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 07:53:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-numbers/m-p/2954510#M696861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T07:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: comparing numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-numbers/m-p/2954511#M696862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tendai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this before the select statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the Fm " Conversion_EXIT_ALPHA_OUTPUT".&lt;/P&gt;&lt;P&gt;Exporting &lt;/P&gt;&lt;P&gt; Input  = ws_num "(00000000000001)&lt;/P&gt;&lt;P&gt;Importing&lt;/P&gt;&lt;P&gt;Output = ws_num "(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this to chk in the SELECT stmt&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 07:58:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-numbers/m-p/2954511#M696862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T07:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: comparing numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-numbers/m-p/2954512#M696863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use CONVERTION_EXIT_ALPHA_INPUT to add leading zeros but try below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In select statement we need to chnage the other component as its type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;select * from gfffff&lt;/P&gt;&lt;P&gt;where (fieldname) = jhkll-(fieldname).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose fieldname = type c&lt;/P&gt;&lt;P&gt;then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at jhkll&lt;/P&gt;&lt;P&gt;and store fieldname into some local table where fieldname type also C &lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from gfffff&lt;/P&gt;&lt;P&gt;where (fieldname) = locall-(fieldname).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if useful...............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Minal Nampalliwar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 08:00:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-numbers/m-p/2954512#M696863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T08:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: comparing numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-numbers/m-p/2954513#M696864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;select * from gfffff
where (fieldname) = jhkll-(fieldname).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose fieldname has 3 leading zeros, in that case, jhkll-(fieldname) in a local variable and concatenate 3 leading zeros before comperation. Ex: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;concatenate '000'  jhkll-(fieldname) to lv1. 
select * from gfffff
where (fieldname) = lv1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If jhkll-(fieldname) has 3 leading zeros then, &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select * from gfffff
where (fieldname) = jhkll-(fieldname)+3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 08:01:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-numbers/m-p/2954513#M696864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T08:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: comparing numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-numbers/m-p/2954514#M696865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 13:37:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-numbers/m-p/2954514#M696865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-17T13:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: comparing numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-numbers/m-p/2954515#M696866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please search before asking - post locked

Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 18:06:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-numbers/m-p/2954515#M696866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-17T18:06:34Z</dc:date>
    </item>
  </channel>
</rss>

