<?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 comparision operator problem. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparision-operator-problem/m-p/6063664#M1354341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with comparision operator anyone can tell me how can i solve the problem.&lt;/P&gt;&lt;P&gt;i have a field in internal table for PF A/c No. and the content of the field like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-PFNO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MP/8129/199&lt;/P&gt;&lt;P&gt;MP/8129/43&lt;/P&gt;&lt;P&gt;MP/8129/1&lt;/P&gt;&lt;P&gt;MP/8129/42&lt;/P&gt;&lt;P&gt;MP/8129/36&lt;/P&gt;&lt;P&gt;NEW05.09.2009.           &amp;lt;--- other character in tha data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to move the last PFNO+8 into a new field. like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-PFNO_NEW&lt;/P&gt;&lt;P&gt;199&lt;/P&gt;&lt;P&gt;43&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;42&lt;/P&gt;&lt;P&gt;36&lt;/P&gt;&lt;P&gt;0                               &amp;lt;--- if other character from '0123456789' the value is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to check that if itab-pfno&lt;EM&gt;8 value only from '0123456789' if any other character in the itab-pfno&lt;/EM&gt;8 character&lt;/P&gt;&lt;P&gt;the itab-pfno_new = 0.&lt;/P&gt;&lt;P&gt;otherwise the last no in the itab-pfno_new.&lt;/P&gt;&lt;P&gt;because it is for sorting the data on pf no.&lt;/P&gt;&lt;P&gt;how can i do this????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Sep 2009 07:42:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-05T07:42:37Z</dc:date>
    <item>
      <title>comparision operator problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparision-operator-problem/m-p/6063664#M1354341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with comparision operator anyone can tell me how can i solve the problem.&lt;/P&gt;&lt;P&gt;i have a field in internal table for PF A/c No. and the content of the field like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-PFNO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MP/8129/199&lt;/P&gt;&lt;P&gt;MP/8129/43&lt;/P&gt;&lt;P&gt;MP/8129/1&lt;/P&gt;&lt;P&gt;MP/8129/42&lt;/P&gt;&lt;P&gt;MP/8129/36&lt;/P&gt;&lt;P&gt;NEW05.09.2009.           &amp;lt;--- other character in tha data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to move the last PFNO+8 into a new field. like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-PFNO_NEW&lt;/P&gt;&lt;P&gt;199&lt;/P&gt;&lt;P&gt;43&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;42&lt;/P&gt;&lt;P&gt;36&lt;/P&gt;&lt;P&gt;0                               &amp;lt;--- if other character from '0123456789' the value is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to check that if itab-pfno&lt;EM&gt;8 value only from '0123456789' if any other character in the itab-pfno&lt;/EM&gt;8 character&lt;/P&gt;&lt;P&gt;the itab-pfno_new = 0.&lt;/P&gt;&lt;P&gt;otherwise the last no in the itab-pfno_new.&lt;/P&gt;&lt;P&gt;because it is for sorting the data on pf no.&lt;/P&gt;&lt;P&gt;how can i do this????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Sep 2009 07:42:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparision-operator-problem/m-p/6063664#M1354341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-05T07:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: comparision operator problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparision-operator-problem/m-p/6063665#M1354342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, NSTomar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please test the following Sample Code it will help you to solve out your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: ctest TYPE string.
ctest = '12534575'. " This time all Number so will not Clear.
IF ctest CN '0123456789'.
  CLEAR: ctest.
ENDIF.
WRITE: /'String = ', ctest.
ctest = '15.75'. " This time have (dot . ) so will Clear this
IF ctest CN '0123456789'.
  CLEAR: ctest.
ENDIF.
WRITE: /'String = ', ctest.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Sep 2009 08:06:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparision-operator-problem/m-p/6063665#M1354342</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-09-05T08:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: comparision operator problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparision-operator-problem/m-p/6063666#M1354343</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;Try like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab.
if itab-pfno CA '/ '.
itab-pfno_new = itab-pfno+0(8).
else.
itab-pfno_new = '0'.
modify iitab.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that the field ITAB-PFNO is declared with type STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Sep 2009 08:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparision-operator-problem/m-p/6063666#M1354343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-05T08:22:13Z</dc:date>
    </item>
  </channel>
</rss>

