<?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 String Function in ABAP? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-in-abap/m-p/5607553#M1277848</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 function in ABAP which can read a string character by character.&lt;/P&gt;&lt;P&gt;E.g: String = "ABCDEF"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With 1st iteration it should return: "A"&lt;/P&gt;&lt;P&gt;With 2nd iteration it should return: "B"&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;With 2nd iteration it should return: "F"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ravi Mehta on May 14, 2009 8:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2009 06:05:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-14T06:05:20Z</dc:date>
    <item>
      <title>String Function in ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-in-abap/m-p/5607553#M1277848</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 function in ABAP which can read a string character by character.&lt;/P&gt;&lt;P&gt;E.g: String = "ABCDEF"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With 1st iteration it should return: "A"&lt;/P&gt;&lt;P&gt;With 2nd iteration it should return: "B"&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;With 2nd iteration it should return: "F"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ravi Mehta on May 14, 2009 8:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 06:05:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-in-abap/m-p/5607553#M1277848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T06:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: String Function in ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-in-abap/m-p/5607554#M1277849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi!&lt;/P&gt;&lt;P&gt;maybe following coding may help you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = strlen(l_var_string)&lt;/P&gt;&lt;P&gt;do len times.&lt;/P&gt;&lt;P&gt;  pos = sy-index - 1.&lt;/P&gt;&lt;P&gt;  result = l_var_string+pos(1).&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 06:09:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-in-abap/m-p/5607554#M1277849</guid>
      <dc:creator>Peter_Lintner</dc:creator>
      <dc:date>2009-05-14T06:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: String Function in ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-in-abap/m-p/5607555#M1277850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try these codes .Function module at times hamper the performance of your program as it loads the Function group memory at runtime into your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Parameters:p_char(30) type string.
data: w_len type i,
        w_len1 type i.

w_len = strlen( P_char ).

Do w_len times.
Write : p_char+w_len1(1).
add 1 to w_len1.
Enddo.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 06:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-in-abap/m-p/5607555#M1277850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T06:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: String Function in ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-in-abap/m-p/5607556#M1277851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can acheive it like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : string TYPE char6,&lt;/P&gt;&lt;P&gt;       char TYPE c,&lt;/P&gt;&lt;P&gt;       place type i,&lt;/P&gt;&lt;P&gt;       cntr1 TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string = 'ABCDEF'.&lt;/P&gt;&lt;P&gt;cntr1 = STRLEN( string ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHILE sy-index le cntr1.&lt;/P&gt;&lt;P&gt;  place =  sy-index - 1.&lt;/P&gt;&lt;P&gt;  char = string+place(1).&lt;/P&gt;&lt;P&gt;ENDWHILE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 06:21:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-function-in-abap/m-p/5607556#M1277851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T06:21:31Z</dc:date>
    </item>
  </channel>
</rss>

