<?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: Replace complete words by another string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409282#M537264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have played around with different possibilities but nothing seems to be really good. Insertion of space before and after the search-term is not possible because of many other signs which can precede or follow.&lt;/P&gt;&lt;P&gt;I think the only one solution at this time would be to try the different combinations of the "special signs" in combination with the word - but this could slow down the whole application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I decided not to offer the possibility to replace whole words. Only simple replacements with "REPLACE" will be possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2007 05:39:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-05T05:39:39Z</dc:date>
    <item>
      <title>Replace complete words by another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409272#M537254</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 searching for a possibility to replace complete words inside a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example I want to replace "quick" by "slow":&lt;/P&gt;&lt;P&gt;"The &amp;lt;b&amp;gt;quick&amp;lt;/b&amp;gt; brown fox is running quicker then the slow brown fox".&lt;/P&gt;&lt;P&gt;The result shall be:&lt;/P&gt;&lt;P&gt;"The &amp;lt;b&amp;gt;slow&amp;lt;/b&amp;gt; brown fox is running quicker then the slow brown fox".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, that the built in "Replace"-Method would also replace "quicker" by "browner".&lt;/P&gt;&lt;P&gt;Furthermore, words beetween different signs (e.g. , . ; : - ! " ? ') shall also be found as complete word.&lt;/P&gt;&lt;P&gt;I already searched for a FM but didn't find anything. Regular expressesions are also not possible because we are running on 6.40.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe anybody can help me with a simple FM or something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 12:46:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409272#M537254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T12:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replace complete words by another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409273#M537255</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;Try REPLACE ALL OCCURANCES OF statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashvender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 12:54:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409273#M537255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T12:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Replace complete words by another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409274#M537256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashvender,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as far as I know this would also replace all substrings, or not!?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 12:56:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409274#M537256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T12:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Replace complete words by another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409275#M537257</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;Can try with " quick ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 12:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409275#M537257</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-07-03T12:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replace complete words by another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409276#M537258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that would work. But if there does occur another sign (such as quotes) it wouldn't work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 12:58:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409276#M537258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T12:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Replace complete words by another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409277#M537259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Give the line in one string &lt;/P&gt;&lt;P&gt;IF string CN 'quick'.&lt;/P&gt;&lt;P&gt;REPLACE 'quick' WITH 'sloa' INTO field.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nandha&lt;/P&gt;&lt;P&gt;Reward if it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 13:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409277#M537259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T13:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replace complete words by another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409278#M537260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a crude way of doing this....with lots of loops..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the SPLIT statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT dobj AT sep INTO &lt;/P&gt;&lt;P&gt;      { {result1 result2 ...} | {TABLE result_tab} } &lt;/P&gt;&lt;P&gt;      [IN {CHARACTER|BYTE} MODE]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and break the sentence into words using space as delimiter. Once you have all the words in a internal table, you can loop through it and compare each word with the word you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve the problem, but will not be performant enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinodh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 13:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409278#M537260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T13:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Replace complete words by another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409279#M537261</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;your not replacing 'quick' your replacing ' quick '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see this:&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------" /&gt;&lt;P&gt;REPORT  ZEND_TEST14 MESSAGE-ID zrsp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_string type string value 'The quick brown fox is running quicker then the slow brown fox'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace ' quick ' in l_string with ' slow '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write l_string.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steffen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 13:01:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409279#M537261</guid>
      <dc:creator>former_member772174</dc:creator>
      <dc:date>2007-07-03T13:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Replace complete words by another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409280#M537262</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;Then may be you can to execute multiple REPLACE statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know its crude but I think no option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also may be you can split your string at SPACE and then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;execute REPLACE in table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 13:02:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409280#M537262</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-07-03T13:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Replace complete words by another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409281#M537263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE &amp;lt;'FIND TEXT'&amp;gt; IN &amp;lt;COMPLETE SEMNTENCE&amp;gt; WITH &amp;lt;'REPLACED TEXT'&amp;gt;.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;replace all occurances of '.' with ''.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;REPLACE '.' WITH ' ' INTO in_par-value.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;var1 = '4444/33'.&lt;/P&gt;&lt;P&gt;REPLACE '/' with SPACE in var1.&lt;/P&gt;&lt;P&gt;Condense var1 no-gaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 13:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409281#M537263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T13:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Replace complete words by another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409282#M537264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have played around with different possibilities but nothing seems to be really good. Insertion of space before and after the search-term is not possible because of many other signs which can precede or follow.&lt;/P&gt;&lt;P&gt;I think the only one solution at this time would be to try the different combinations of the "special signs" in combination with the word - but this could slow down the whole application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I decided not to offer the possibility to replace whole words. Only simple replacements with "REPLACE" will be possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 05:39:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-complete-words-by-another-string/m-p/2409282#M537264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T05:39:39Z</dc:date>
    </item>
  </channel>
</rss>

