<?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: extract numc from string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-numc-from-string/m-p/3463768#M832412</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;You can do as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data : var(10) type c value 'ACNC12345'.
data : num(10) type n.

num = var.
shift num left deleting leading '0'.
write num.

O/P : 12345.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2008 13:07:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-26T13:07:48Z</dc:date>
    <item>
      <title>extract numc from string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-numc-from-string/m-p/3463766#M832410</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;Is there any FM which helps u to fetch the NUMC value from a string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: if the string is asdet5756frgd it shud give the output as 5756.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 12:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-numc-from-string/m-p/3463766#M832410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T12:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: extract numc from string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-numc-from-string/m-p/3463767#M832411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  zzztest.

DATA:str(20) TYPE c VALUE 'abcd 1234225523 xyz',
num(10) TYPE n.

num = str.

WRITE:/ num NO-ZERO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all you need to take care about is, that your num variable is long enough to take all the digits in your string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Florian Kemmer on Feb 26, 2008 2:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 12:49:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-numc-from-string/m-p/3463767#M832411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T12:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: extract numc from string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-numc-from-string/m-p/3463768#M832412</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;You can do as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data : var(10) type c value 'ACNC12345'.
data : num(10) type n.

num = var.
shift num left deleting leading '0'.
write num.

O/P : 12345.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 13:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-numc-from-string/m-p/3463768#M832412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T13:07:48Z</dc:date>
    </item>
  </channel>
</rss>

