<?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: Urgent: please reply in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-please-reply/m-p/2516563#M569375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ooops! I've reached the post after it was solved... sorry for the spam &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And worse than this (for me, of course)... the solution provided before mine is pretty better...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try using the SEARCH sentence. With it, you can look your string for '0', '1', '2'...'9'. If your value is as you've said (once you find a number, the rest of the string will be numbers), take the lower position returned and "cut" your variable from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: mystring(10) TYPE c VALUE 'TEST230188',
      mycount TYPE sy-index,
      mynum(1) TYPE n,
      mypos TYPE sy-fdpos.
DO 10 TIMES.
  mycount = sy-index - 1.
  mynum = mycount.
  SEARCH mystring FOR mynum.
  IF sy-fdpos &amp;lt; mypos AND sy-subrc = 0.
    mypos = sy-fdpos.
  ENDIF.
ENDDO.
SHIFT mystring BY mypos PLACES.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(the code is not tested, it's just a sample of what you can do, and I'm sure it can be improved a lot... good luck with it)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: VLozano&lt;/P&gt;&lt;P&gt;        Vicenç Lozano&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2007 07:31:36 GMT</pubDate>
    <dc:creator>VXLozano</dc:creator>
    <dc:date>2007-07-12T07:31:36Z</dc:date>
    <item>
      <title>Urgent: please reply</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-please-reply/m-p/2516561#M569373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to remove all alphabet and only leave numbers for the value of a field.&lt;/P&gt;&lt;P&gt;for example: FIELD1:  DVE6837&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output required for FIELD1 is just 6837.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The alphabet is always at the beginning and tehre is no other pattern it follows like fixed length or sequence etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest how to achieve this in the best feasible way. Please reply immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 07:16:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-please-reply/m-p/2516561#M569373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T07:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent: please reply</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-please-reply/m-p/2516562#M569374</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 this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: P_FIELD(10).

DATA: LEN TYPE I,
      POS TYPE I.

LEN = STRLEN( P_FIELD ).

DO LEN TIMES.

  IF P_FIELD+POS(1) CO SY-ABCDE.
    P_FIELD+POS(1) = SPACE.
  ENDIF.

  POS = SY-INDEX.

ENDDO.

CONDENSE P_FIELD NO-GAPS.

WRITE P_FIELD.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 07:23:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-please-reply/m-p/2516562#M569374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T07:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent: please reply</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-please-reply/m-p/2516563#M569375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ooops! I've reached the post after it was solved... sorry for the spam &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And worse than this (for me, of course)... the solution provided before mine is pretty better...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try using the SEARCH sentence. With it, you can look your string for '0', '1', '2'...'9'. If your value is as you've said (once you find a number, the rest of the string will be numbers), take the lower position returned and "cut" your variable from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: mystring(10) TYPE c VALUE 'TEST230188',
      mycount TYPE sy-index,
      mynum(1) TYPE n,
      mypos TYPE sy-fdpos.
DO 10 TIMES.
  mycount = sy-index - 1.
  mynum = mycount.
  SEARCH mystring FOR mynum.
  IF sy-fdpos &amp;lt; mypos AND sy-subrc = 0.
    mypos = sy-fdpos.
  ENDIF.
ENDDO.
SHIFT mystring BY mypos PLACES.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(the code is not tested, it's just a sample of what you can do, and I'm sure it can be improved a lot... good luck with it)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: VLozano&lt;/P&gt;&lt;P&gt;        Vicenç Lozano&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 07:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-please-reply/m-p/2516563#M569375</guid>
      <dc:creator>VXLozano</dc:creator>
      <dc:date>2007-07-12T07:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent: please reply</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-please-reply/m-p/2516564#M569376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Max!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 07:31:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-please-reply/m-p/2516564#M569376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T07:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent: please reply</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-please-reply/m-p/2516565#M569377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think you have to check it like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: a type i.&lt;/P&gt;&lt;P&gt;data: c(10) type c value 'asd123'.&lt;/P&gt;&lt;P&gt;data: c1 type i.&lt;/P&gt;&lt;P&gt;data: c2(10) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c1 = strlen( c ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do c1 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if c+a(1) = '1' .&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a = a + 1.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c2 = c+a(c1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 07:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-please-reply/m-p/2516565#M569377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T07:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent: please reply</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-please-reply/m-p/2516566#M569378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u r sure that the alphabet &amp;lt;b&amp;gt;only occurs at the beginning&amp;lt;/b&amp;gt; then u can check this sample program&lt;/P&gt;&lt;P&gt;REPORT  ZYH284_TEST2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  w_char(10) value 'abcd1234',&lt;/P&gt;&lt;P&gt;  w_num(10) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_num = w_char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  write:w_num.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 07:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-please-reply/m-p/2516566#M569378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T07:39:38Z</dc:date>
    </item>
  </channel>
</rss>

