<?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 character value to numeric in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-character-value-to-numeric/m-p/3838442#M922933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you compare character value to numeric it compared from left to right not considering the length of both the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which means you will have to something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_value GE '000000000000000000000000050000'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this should give you the correct result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2008 13:20:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-21T13:20:08Z</dc:date>
    <item>
      <title>comparing character value to numeric</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-character-value-to-numeric/m-p/3838439#M922930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to compare one character field to numeric,&lt;/P&gt;&lt;P&gt; i got one field from some custom developed fm the field having the p_value&lt;/P&gt;&lt;P&gt; is of type c(30) ,  i want to compare this value to numeric 50000 if i use the following code it &lt;/P&gt;&lt;P&gt;does not give the correct value. please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if p_value GE '50000'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 13:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-character-value-to-numeric/m-p/3838439#M922930</guid>
      <dc:creator>mohan_subramania</dc:creator>
      <dc:date>2008-05-21T13:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: comparing character value to numeric</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-character-value-to-numeric/m-p/3838440#M922931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  w_int type i,&lt;/P&gt;&lt;P&gt; w_char(13) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_int = w_char.&lt;/P&gt;&lt;P&gt;if w_int ge 50000.&lt;/P&gt;&lt;P&gt;ur code&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 13:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-character-value-to-numeric/m-p/3838440#M922931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T13:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: comparing character value to numeric</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-character-value-to-numeric/m-p/3838441#M922932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: var1(30) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var1 = p_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if var1 GE 50000.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 13:19:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-character-value-to-numeric/m-p/3838441#M922932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T13:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: comparing character value to numeric</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-character-value-to-numeric/m-p/3838442#M922933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you compare character value to numeric it compared from left to right not considering the length of both the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which means you will have to something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_value GE '000000000000000000000000050000'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this should give you the correct result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 13:20:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-character-value-to-numeric/m-p/3838442#M922933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T13:20:08Z</dc:date>
    </item>
  </channel>
</rss>

