<?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: Problem in comparing two character fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-comparing-two-character-fields/m-p/3101391#M735944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use the function module to compare two date values rather then comparing them directly&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2007 10:05:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-29T10:05:02Z</dc:date>
    <item>
      <title>Problem in comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-comparing-two-character-fields/m-p/3101388#M735941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to compare two fields. Like CDPOS-NEW and CDPOS-OLD. These are character fields. I am getting error in Extended ProgramCheck as following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greater than/less than comparisons with character type operands may not be portable&lt;/P&gt;&lt;P&gt;(Message can be hidden using: "#EC PORTABLE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Actually those 2 field values(CDPOS-NEW and CDPOS-OLD.) in CDPOS table ,are date fields .What I should I do to compare these two fields which are in character format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 09:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-comparing-two-character-fields/m-p/3101388#M735941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T09:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-comparing-two-character-fields/m-p/3101389#M735942</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 : a TYPE char10  VALUE 'DBCD',&lt;/P&gt;&lt;P&gt;       b TYPE char10  VALUE '4234',&lt;/P&gt;&lt;P&gt;       c TYPE char10  VALUE '3456',&lt;/P&gt;&lt;P&gt;       d TYPE char10  VALUE 'ADA',&lt;/P&gt;&lt;P&gt;       e TYPE char10 VALUE  '234567'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;IF b GT c.        "this case checks for numeric values&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'B is bigger'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'C is bigger'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;IF a GT d.      "this case checks for alphbetical order&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'A is bigger'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'D is bigger'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;IF strlen( a ) GT strlen( d ). "this case checks for no of chars&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'A is bigger'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'D is bigger'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;IF a GT c.      "this case first alph then numerics&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'A is bigger'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'D is bigger'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 09:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-comparing-two-character-fields/m-p/3101389#M735942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T09:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-comparing-two-character-fields/m-p/3101390#M735943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I got you right, it might work if you move the data to help-fields typed as date and compare these fields instead of the character fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 10:01:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-comparing-two-character-fields/m-p/3101390#M735943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T10:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-comparing-two-character-fields/m-p/3101391#M735944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use the function module to compare two date values rather then comparing them directly&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 10:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-comparing-two-character-fields/m-p/3101391#M735944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T10:05:02Z</dc:date>
    </item>
  </channel>
</rss>

