<?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: Duda with REPLACE ALL OCCURRENCES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646994#M1943284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. You need to put as many characters as you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Apr 2016 22:18:39 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2016-04-07T22:18:39Z</dc:date>
    <item>
      <title>Duda with REPLACE ALL OCCURRENCES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646988#M1943278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hello! Exists the posibility of optimize the next code?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF 'á' IN wa_header-justif WITH '&amp;amp;aacute;'.&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF 'é' IN wa_header-justif WITH '&amp;amp;eacute;'.&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF 'í' IN wa_header-justif WITH '&amp;amp;iacute;'.&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF 'ó' IN wa_header-justif WITH '&amp;amp;oacute;'.&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF 'ú' IN wa_header-justif WITH '&amp;amp;uacute;'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 20:59:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646988#M1943278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-07T20:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Duda with REPLACE ALL OCCURRENCES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646989#M1943279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with Regex - [áéíóú] and replacement &amp;amp;aacute;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use program DEMO_REGEX_TOY to play with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the input text is - &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Thís hás sómé néw stúff&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Output would be (with replace all)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="font-family: 'Arial monospaced for SAP', 'Courier New';"&gt;Th&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;amp;aacute;&lt;/STRONG&gt;&lt;/SPAN&gt;s h&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;amp;aacute;&lt;/STRONG&gt;&lt;/SPAN&gt;s s&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;amp;aacute;&lt;/STRONG&gt;&lt;/SPAN&gt;m&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;amp;aacute;&lt;/STRONG&gt;&lt;/SPAN&gt; n&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;amp;aacute;&lt;/STRONG&gt;&lt;/SPAN&gt;w st&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;amp;aacute;&lt;/STRONG&gt;&lt;/SPAN&gt;ff &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 21:10:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646989#M1943279</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2016-04-07T21:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Duda with REPLACE ALL OCCURRENCES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646990#M1943280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! but, How I can use this in my code ABAP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 21:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646990#M1943280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-07T21:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Duda with REPLACE ALL OCCURRENCES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646991#M1943281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simplest form - &lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12.8px; font-weight: bold; background-color: #fefeff;"&gt;REPLACE ALL OCCURRENCES OF REGEX 'u*' IN text WITH 'x'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_740/en/abapreplace_in_pattern.htm#!ABAP_ADDITION_1@1@" title="http://help.sap.com/abapdocu_740/en/abapreplace_in_pattern.htm#!ABAP_ADDITION_1@1@"&gt;http://help.sap.com/abapdocu_740/en/abapreplace_in_pattern.htm#!ABAP_ADDITION_1@1@&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 21:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646991#M1943281</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2016-04-07T21:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Duda with REPLACE ALL OCCURRENCES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646992#M1943282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thaks, I can put multiple values in &lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12.8px; font-weight: bold; background-color: #fefeff;"&gt;WITH 'x'?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 21:57:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646992#M1943282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-07T21:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Duda with REPLACE ALL OCCURRENCES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646993#M1943283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you want to work on the same field a lot, I'd suggest a local macro (this is an example where a macro makes sense):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define m_rep.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;REPLACE ALL OCCURRENCES OF &amp;amp;2 IN &amp;amp;1 WITH &amp;amp;3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;end-of-definition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;(note the sequence of placeholders)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;Now you can code like so.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;m_rep fieldname:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;'from1' 'to1',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;'from2' 'to2',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;'from3' 'to3'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;With proper naming and indentation, it makes your code more readable. The performance is the same of course... Keep the macro close to the code if possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;If the action is more complex and you need to debug, you can use the same technique for readability and issue a perform from the macro. I only use macros for some cases, and this would be one of them.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;Wolfgang &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 19px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 22:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646993#M1943283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-07T22:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Duda with REPLACE ALL OCCURRENCES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646994#M1943284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. You need to put as many characters as you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 22:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646994#M1943284</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2016-04-07T22:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Duda with REPLACE ALL OCCURRENCES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646995#M1943285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Like:&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF REGEX 'áéíóú' IN my_var WITH 'param1' 'param2' 'param3...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 23:47:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646995#M1943285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-07T23:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Duda with REPLACE ALL OCCURRENCES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646996#M1943286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These are HTML tags. I'm fairly sure there are some standard function modules or methods that do this work for you. Or perhaps the &lt;STRONG&gt;escape&lt;/STRONG&gt; string function (7.40).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 05:50:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duda-with-replace-all-occurrences/m-p/11646996#M1943286</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-04-08T05:50:11Z</dc:date>
    </item>
  </channel>
</rss>

