<?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 report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3789507#M911564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have string "AA000PGS01901 , the string may be userdefined also&lt;/P&gt;&lt;P&gt;and i want to print only the numeric ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 May 2008 21:51:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-05T21:51:54Z</dc:date>
    <item>
      <title>report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3789507#M911564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have string "AA000PGS01901 , the string may be userdefined also&lt;/P&gt;&lt;P&gt;and i want to print only the numeric ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 21:51:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3789507#M911564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T21:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3789508#M911565</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 for sure know the number of numeric values in the string then you can simply define a NUMC variable and move the string to it.. like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : num(8) type n.&lt;/P&gt;&lt;P&gt;data : str(13) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num = str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then num will be 00001901.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can write a simple subroutine to ignore all the alphabets...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PARAMETERS : p_str(25) TYPE c DEFAULT 'AA000PGS01901'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : l_len TYPE i.&lt;/P&gt;&lt;P&gt;  DATA : l_num(25).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM get_num USING p_str CHANGING l_num .&lt;/P&gt;&lt;P&gt;  WRITE : / p_str, / l_num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FORM get_num USING    value(str)&lt;/P&gt;&lt;P&gt;               CHANGING value(num).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CONDENSE str.  l_len = STRLEN( str ).&lt;/P&gt;&lt;P&gt;     WHILE l_len &amp;gt; 0..&lt;/P&gt;&lt;P&gt;        l_len = l_len - 1.&lt;/P&gt;&lt;P&gt;        IF str+l_len(1) CA '0123456789'.&lt;/P&gt;&lt;P&gt;           CONCATENATE str+l_len(1) num INTO num.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;     ENDWHILE.&lt;/P&gt;&lt;P&gt;  ENDFORM.                    " get_num&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you come across any simple method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 22:37:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3789508#M911565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T22:37:35Z</dc:date>
    </item>
  </channel>
</rss>

