<?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: How to get substring from a string? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342864#M516587</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;substring = string+offset(no of chars).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string = 'C-REVF-00003 0010'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;substring = string+14(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2007 10:58:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-05T10:58:15Z</dc:date>
    <item>
      <title>How to get substring from a string?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342862#M516585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, there is a string:&lt;/P&gt;&lt;P&gt;C-REVF-00003 0010 Development&lt;/P&gt;&lt;P&gt;how the program get the value '0010'? &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 10:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342862#M516585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T10:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get substring from a string?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342863#M516586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use split command and seperated by spaces..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 10:57:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342863#M516586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T10:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get substring from a string?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342864#M516587</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;substring = string+offset(no of chars).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string = 'C-REVF-00003 0010'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;substring = string+14(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 10:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342864#M516587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T10:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get substring from a string?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342865#M516588</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;Use SHIFT &amp;lt;string&amp;gt; BY &amp;lt;n&amp;gt; PLACES LEFT command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 10:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342865#M516588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T10:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get substring from a string?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342866#M516589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can use offset lengths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text  = '10001000101'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_text  = text+9(3) = 101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Peram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 10:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342866#M516589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T10:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get substring from a string?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342867#M516590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data :  text(30) value 'C-REVF-00003 0010 ',&lt;/P&gt;&lt;P&gt;text1(10),&lt;/P&gt;&lt;P&gt;       text2(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split text at space into text1 text2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : /  text2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 10:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342867#M516590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T10:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get substring from a string?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342868#M516591</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;Use Split command.&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;SPLIT &amp;lt;c&amp;gt; AT &amp;lt;del&amp;gt; INTO &amp;lt;c1&amp;gt;... &amp;lt;cn&amp;gt; INTO TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;Searches the field &amp;lt;c&amp;gt; for the character &amp;lt;del&amp;gt; and places the partial fields before and after &amp;lt;del&amp;gt;&lt;/P&gt;&lt;P&gt;into the target fields &amp;lt;c1&amp;gt; &amp;#133; &amp;lt;cn&amp;gt;, or into a new line of the internal table &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;DATA: STRING(60),&lt;/P&gt;&lt;P&gt;P1(20) VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;P2(20) VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;P3(20) VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;P4(20) VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;DEL(3) VALUE '***'.&lt;/P&gt;&lt;P&gt;STRING = ' Part 1 *** Part 2 *** Part 3 *** Part 4 *** Part 5'.&lt;/P&gt;&lt;P&gt;WRITE STRING.&lt;/P&gt;&lt;P&gt;SPLIT STRING AT DEL INTO P1 P2 P3 P4.&lt;/P&gt;&lt;P&gt;WRITE / P1.&lt;/P&gt;&lt;P&gt;WRITE / P2.&lt;/P&gt;&lt;P&gt;WRITE / P3.&lt;/P&gt;&lt;P&gt;WRITE / P4.&lt;/P&gt;&lt;P&gt;The output appears as follows:&lt;/P&gt;&lt;P&gt;Part 1 *** Part 2 *** Part 3 *** Part 4 *** Part 5&lt;/P&gt;&lt;P&gt;Part 1&lt;/P&gt;&lt;P&gt;Part 2&lt;/P&gt;&lt;P&gt;Part 3&lt;/P&gt;&lt;P&gt;Part 4 *** Part 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 11:00:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342868#M516591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T11:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get substring from a string?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342869#M516592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the string = 'C-REVF-00000003 0010'.&lt;/P&gt;&lt;P&gt;substring = string+14(4) doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 11:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342869#M516592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T11:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get substring from a string?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342870#M516593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;hi James,

 try this

REPORT ychatest MESSAGE-ID zz..

DATA : v_str(25) VALUE 'C-REVF-00003 0010',
       v_str1(4).

SEARCH v_str FOR '0010'.
IF sy-subrc EQ 0.
  v_str1 = v_str+sy-fdpos(4).
ENDIF.

WRITE : v_str1&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 11:04:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-substring-from-a-string/m-p/2342870#M516593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T11:04:25Z</dc:date>
    </item>
  </channel>
</rss>

