<?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 ABAP Substring? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-substring/m-p/916801#M58313</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;I'm looking for a substring command in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a string like this...&lt;/P&gt;&lt;P&gt;text = 'hello, how are you today'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my goal...&lt;/P&gt;&lt;P&gt;I want to separate my string at the 10th character into two strings (text1 and text2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the result would be&lt;/P&gt;&lt;P&gt;text1 has the value 'hello, how'&lt;/P&gt;&lt;P&gt;text2 has the value ' are you today'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;of course, the characters in the string 'text' will vary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Audrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2005 19:53:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-16T19:53:07Z</dc:date>
    <item>
      <title>ABAP Substring?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-substring/m-p/916801#M58313</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;I'm looking for a substring command in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a string like this...&lt;/P&gt;&lt;P&gt;text = 'hello, how are you today'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my goal...&lt;/P&gt;&lt;P&gt;I want to separate my string at the 10th character into two strings (text1 and text2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the result would be&lt;/P&gt;&lt;P&gt;text1 has the value 'hello, how'&lt;/P&gt;&lt;P&gt;text2 has the value ' are you today'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;of course, the characters in the string 'text' will vary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Audrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2005 19:53:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-substring/m-p/916801#M58313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-16T19:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Substring?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-substring/m-p/916802#M58314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the following logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .


data: x(100) type c,
      y(100) type c,
      z(100) type c.

x = 'Hello, how are you doing?'.


y = x+0(10).
z = x+10(90).


write:/ y.
write:/ z.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2005 20:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-substring/m-p/916802#M58314</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-05-16T20:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Substring?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-substring/m-p/916803#M58315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Audrey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use offset and length additions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA lv_str TYPE string .

lv_str = 'hello, how are you today' .
write:/ lv_str+7 ,
      / lv_str+7(3) ,
      / lv_str(7) .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;how are you today
how
hello,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar &amp;lt;a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d"&amp;gt;[ BC ]&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2005 20:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-substring/m-p/916803#M58315</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-05-16T20:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Substring?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-substring/m-p/916804#M58316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ho Audrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA text(80).
DATA: BEGIN OF tx,
text1(10),
text2(70),
END OF tx.

text = 'hello, how are you today'.
WRITE : / text.
ULINE.
MOVE text TO tx.
WRITE: / tx-text1.
WRITE: / tx-text2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;regards Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2005 06:27:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-substring/m-p/916804#M58316</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-05-17T06:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Substring?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-substring/m-p/916805#M58317</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;Have a look at this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://goldenink.com/abap/substring.html" target="test_blank"&gt;http://goldenink.com/abap/substring.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refer &lt;A href="http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap" target="test_blank"&gt;http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap&lt;/A&gt; for power users&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Judith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2005 06:43:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-substring/m-p/916805#M58317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-17T06:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Substring?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-substring/m-p/916806#M58318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Function module 'STRING_SPLIT_AT_POSITION'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2005 16:06:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-substring/m-p/916806#M58318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-18T16:06:52Z</dc:date>
    </item>
  </channel>
</rss>

