<?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: Issue with REPLACE Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-replace-statement/m-p/6553971#M1430105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '&amp;amp;' IN text2 WITH space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split text at space into op1 op2 op3 op4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Feb 2010 18:15:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-18T18:15:53Z</dc:date>
    <item>
      <title>Issue with REPLACE Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-replace-statement/m-p/6553969#M1430103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue with replace statement . I Would appreciate if someone can throw some light on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the corresponding values of 4 "&amp;amp;" of text2 in comparsion of Text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It works fine for every option except for&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;text2 =  '&amp;amp; &amp;amp; &amp;amp; &amp;amp; Class third Field fourth'.&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;O/p   test1  = This first Custom second , test2, test3,test4 are blank&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i want o/p like test1 = this&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;                &lt;STRONG&gt;test2 = first&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                &lt;STRONG&gt;test3 = custom&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                &lt;STRONG&gt;test4 = second&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;text2 =  'This first Custom second &amp;amp; &amp;amp; &amp;amp; &amp;amp;'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;O/p   test4  = Class third Field fourth , test1, test2,test3 are blank&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i want o/p like test1 = class&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;                &lt;STRONG&gt;test2 = third&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                &lt;STRONG&gt;test3 = field&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                &lt;STRONG&gt;test4 = fourth&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry i tried in code mode but for some reason it doesn't work. It looks messy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: DAVID KITSO on Feb 18, 2010 5:03 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Feb 18, 2010 1:04 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 16:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-replace-statement/m-p/6553969#M1430103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-18T16:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with REPLACE Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-replace-statement/m-p/6553970#M1430104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  There is a character limitation for posts and as the option code add some HTML, this is rewritten badly... I suggest you to write fewer piece of code nex time in order to have the code well formatted!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  For your requirement, the split is done on character '&amp;amp;' so if words are separated by space you will not split correctly words in your 5 variables! I suppose that it is rather your input (variable text2) which is badly formatted in the "wrong" cases...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Samuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 16:47:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-replace-statement/m-p/6553970#M1430104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-18T16:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with REPLACE Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-replace-statement/m-p/6553971#M1430105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '&amp;amp;' IN text2 WITH space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split text at space into op1 op2 op3 op4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 18:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-replace-statement/m-p/6553971#M1430105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-18T18:15:53Z</dc:date>
    </item>
  </channel>
</rss>

