<?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 ALL OCCURRENCIES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrencies/m-p/6345160#M1398014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_otfdata1 INTO wotfdata .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      REPLACE FIRST OCCURRENCE OF 'ORIGINAL' IN wotfdata-tdprintpar WITH 'DUPLICATE'.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        MODIFY it_otfdata1 FROM wotfdata INDEX sy-tabix TRANSPORTING tdprintpar.&lt;/P&gt;&lt;P&gt;*exit.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;    APPEND LINES OF it_otfdata1 TO it_otfdata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Nov 2009 07:14:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-09T07:14:23Z</dc:date>
    <item>
      <title>REPLACE ALL OCCURRENCIES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrencies/m-p/6345157#M1398011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody explain me the logic of ALL OCCURRENCIES in the the example below : &lt;/P&gt;&lt;P&gt;I think that this operator should replace A , ! with ' ' but the real output is different.&lt;/P&gt;&lt;P&gt;The real output is AA!A. It replaces all small characters with ' '. Why &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : l_PD(10) TYPE C.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;l_pd = 'AbbA!A'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt; replace all OCCURRENCES OF REGEX&lt;/P&gt;&lt;P&gt;  '[^!"%&amp;amp;''()*+,-./:;&amp;lt;=&amp;gt;?_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]' in&lt;/P&gt;&lt;P&gt;  l_pd with ' '.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Nov 2009 17:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrencies/m-p/6345157#M1398011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-07T17:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURRENCIES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrencies/m-p/6345158#M1398012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi commander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please paste code as &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; code &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; , thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Nov 2009 18:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrencies/m-p/6345158#M1398012</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-11-07T18:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURRENCIES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrencies/m-p/6345159#M1398013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... and put search (patterns) characters in square brackets [[ and ]].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also [Regular Expressions in Routines|http://help.sap.com/saphelp_nw70/helpdata/en/42/9d6ceabb211d73e10000000a1553f6/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Nov 2009 13:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrencies/m-p/6345159#M1398013</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-11-08T13:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURRENCIES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrencies/m-p/6345160#M1398014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_otfdata1 INTO wotfdata .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      REPLACE FIRST OCCURRENCE OF 'ORIGINAL' IN wotfdata-tdprintpar WITH 'DUPLICATE'.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        MODIFY it_otfdata1 FROM wotfdata INDEX sy-tabix TRANSPORTING tdprintpar.&lt;/P&gt;&lt;P&gt;*exit.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;    APPEND LINES OF it_otfdata1 TO it_otfdata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 07:14:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrencies/m-p/6345160#M1398014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-09T07:14:23Z</dc:date>
    </item>
  </channel>
</rss>

