<?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: About REPLACE ALL functionality in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336305#M1033026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Vijay and Matt... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Amey Mogare&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 30 Aug 2008 04:22:55 GMT</pubDate>
    <dc:creator>Amey-Mogare</dc:creator>
    <dc:date>2008-08-30T04:22:55Z</dc:date>
    <item>
      <title>About REPLACE ALL functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336297#M1033018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one string which contains '#' in between. And I want to replace all these '#' with ' ' (ie blank SPACE)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this I am using:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '#' IN L_TEXT WITH ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But to my greatest surprise, its not able to replace it saying sy-subrc = 4 ie its not able to locate '#'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have observed following:-&lt;/P&gt;&lt;P&gt;1. Suppose L_TEXT = 'corrective action## is that# to be #taken'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then replace all fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. But suppose L_TEXT = 'corrective action # # is that # to be # taken'&lt;/P&gt;&lt;P&gt;then its works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the option of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF REGEX '#*' IN L_TEXT WITH ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its putting ''#" after every character !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the same functionality works with CRM4.0's ABAP editor but now when i am using it in CRM2007's ABAP editor, its not woking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried it in ABAP editors of other systems like PRD n all. Its working there too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please shed some light on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Amey Mogare&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 07:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336297#M1033018</guid>
      <dc:creator>Amey-Mogare</dc:creator>
      <dc:date>2008-08-29T07:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: About REPLACE ALL functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336298#M1033019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  try it with space :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE ALL OCCURRENCES OF '#' IN L_TEXT WITH     SPACE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 07:30:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336298#M1033019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T07:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: About REPLACE ALL functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336299#M1033020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try This.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REPLACE ALL OCCURRENCES OF '#' IN L_TEXT WITH SPACE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 07:34:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336299#M1033020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T07:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: About REPLACE ALL functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336300#M1033021</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;you can try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;w_char type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF REGEX w_char IN L_TEXT WITH space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sumit Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 07:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336300#M1033021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T07:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: About REPLACE ALL functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336301#M1033022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per mentioned in the my question post, SY-SUBRC is 4 which means that system is not able to locate character '#'...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And same piece of code is working if i separate the # with leading and trailing spaces !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Amey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 07:46:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336301#M1033022</guid>
      <dc:creator>Amey-Mogare</dc:creator>
      <dc:date>2008-08-29T07:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: About REPLACE ALL functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336302#M1033023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure it's #?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP display undisplayable characters, like TAB as #.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In debugger, you can find the hex for the character represented as #.  E.g. x10 is TAB.  Then you should use, CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB as the string to replace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 07:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336302#M1033023</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-08-29T07:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: About REPLACE ALL functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336303#M1033024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Matt, &lt;/P&gt;&lt;P&gt;I suspect its not the actual character "#". !!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually in one of the CRM transaction GUI, there is a Text Box where user can enter his Survey details. In this, if he enters a newline then in FM i'm getting it as "#"... What I mean is if I write :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heading 2: h2.&lt;/P&gt;&lt;P&gt;Containment text&lt;/P&gt;&lt;P&gt;is as follows&lt;/P&gt;&lt;P&gt;line 1&lt;/P&gt;&lt;P&gt;line2&lt;/P&gt;&lt;P&gt; Heading 2: h2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in FM's field its represented as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heading 2: h2.&lt;/P&gt;&lt;P&gt;Containment text# is as follows# line 1# line2&lt;/P&gt;&lt;P&gt;Heading 2: h2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is getting messed up in when we dump it into excel sheet.&lt;/P&gt;&lt;P&gt;So how do i replace these with Spaces?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code line would be very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for pointing this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Amey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Aug 2008 03:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336303#M1033024</guid>
      <dc:creator>Amey-Mogare</dc:creator>
      <dc:date>2008-08-30T03:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: About REPLACE ALL functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336304#M1033025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is a Little modification Matt's suggestion , that '#' is coming from New line, So you can replace all New lines using this code.&lt;/P&gt;&lt;P&gt;Using CL_ABAP_CHAR_UTILITIES=&amp;gt;NEWLINE  we can replace that '#'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=&amp;gt;NEWLINE IN WA_REC WITH SPACE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Aug 2008 03:51:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336304#M1033025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-30T03:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: About REPLACE ALL functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336305#M1033026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Vijay and Matt... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Amey Mogare&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Aug 2008 04:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-replace-all-functionality/m-p/4336305#M1033026</guid>
      <dc:creator>Amey-Mogare</dc:creator>
      <dc:date>2008-08-30T04:22:55Z</dc:date>
    </item>
  </channel>
</rss>

