<?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: String Operation not working Correctly in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-not-working-correctly/m-p/8229650#M1629050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SEARCH statement is obsolete, i´d try using the followup statement called FIND.&lt;/P&gt;&lt;P&gt;Hopefully this will work out like you need it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2011 13:57:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-20T13:57:13Z</dc:date>
    <item>
      <title>String Operation not working Correctly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-not-working-correctly/m-p/8229649#M1629049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have one code where I have to Seprate a string in lines based on Pattern '#'. &lt;/P&gt;&lt;P&gt;EG:   first line##second line##third line.&lt;/P&gt;&lt;P&gt;output should be : &lt;/P&gt;&lt;P&gt;first line&lt;/P&gt;&lt;P&gt;second line&lt;/P&gt;&lt;P&gt;third line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;    SEARCH content for '#'.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   find hash in content.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    if sy-subrc = 4.&lt;/P&gt;&lt;P&gt;        gfs_content-content = content.&lt;/P&gt;&lt;P&gt;        APPEND gfs_content TO git_content.&lt;/P&gt;&lt;P&gt;        clear gfs_content.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;        gfs_content-content = content+0(sy-fdpos).&lt;/P&gt;&lt;P&gt;        APPEND gfs_content TO git_content.&lt;/P&gt;&lt;P&gt;        clear gfs_content.&lt;/P&gt;&lt;P&gt;        loc_count = sy-fdpos + 2.&lt;/P&gt;&lt;P&gt;        SHIFT content BY loc_count PLACES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;when I am changing the content value in Debugger, this code is working fine.&lt;/STRONG&gt; but when I am executing it directly without any change in value in debugger, Sy-subrc = 4 after SEARCH operation. Its not finding the "#" position.&lt;/P&gt;&lt;P&gt;What could be the possible reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 13:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-not-working-correctly/m-p/8229649#M1629049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-20T13:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: String Operation not working Correctly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-not-working-correctly/m-p/8229650#M1629050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SEARCH statement is obsolete, i´d try using the followup statement called FIND.&lt;/P&gt;&lt;P&gt;Hopefully this will work out like you need it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 13:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-not-working-correctly/m-p/8229650#M1629050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-20T13:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: String Operation not working Correctly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-not-working-correctly/m-p/8229651#M1629051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With FIND statement also, I am facing same problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 14:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-not-working-correctly/m-p/8229651#M1629051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-20T14:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: String Operation not working Correctly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-not-working-correctly/m-p/8229652#M1629052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you are trying to find the newline character. If that's the case you should use CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF instead of '#'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, may be this piece of code is more suitable for what you are trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SPLIT content AT CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF INTO TABLE GFS_CONTENT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 14:11:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-not-working-correctly/m-p/8229652#M1629052</guid>
      <dc:creator>arseni_gallardo</dc:creator>
      <dc:date>2011-09-20T14:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: String Operation not working Correctly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-not-working-correctly/m-p/8229653#M1629053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@@Arseni        thanks a lot.....it worked....excellent solution....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: abhi1185 on Sep 20, 2011 4:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 14:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-not-working-correctly/m-p/8229653#M1629053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-20T14:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: String Operation not working Correctly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-not-working-correctly/m-p/8229654#M1629054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;removed by moderator&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please leave this reminder to the moderators.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Sep 20, 2011 8:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 14:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-not-working-correctly/m-p/8229654#M1629054</guid>
      <dc:creator>arseni_gallardo</dc:creator>
      <dc:date>2011-09-20T14:27:11Z</dc:date>
    </item>
  </channel>
</rss>

