<?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 OCCURENCE ... warning message in Eclipse in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174346#M1979306</link>
    <description>&lt;P&gt;my sentence wasn't complete, I would like  to say : I do not use REGEX because I don't know enough REGEX. &lt;/P&gt;&lt;P&gt;For the funny end of the story, I remove all this and replace by the old way (maybe R/2 way): complete field with 0 &lt;/P&gt;&lt;P&gt;And strange things, the code compile with the error in OCCURENCES, but the ABAP UNIT gives me an fatal error with something about loop without end ... &lt;/P&gt;&lt;P&gt;I will try to replace it with a beautiful REGEX &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  Thanks Sandra&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2020 05:15:28 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2020-04-29T05:15:28Z</dc:date>
    <item>
      <title>REPLACE ALL OCCURENCE ... warning message in Eclipse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174341#M1979301</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I use this command:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;    replace all occurences of ' ' in rv_temps with '0' in character mode.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;(because I don't know enough regex)&lt;/P&gt;
  &lt;P&gt;but Eclipse give me a very interesting warning message :&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;Description	Resource	Path	Location	Type
Use OCCURRENCE(S), not OCCURENCE(S). OCCURENCE(S).	ZCL_CA_HEURE_CALCUL (Global Class)	[XXX] 
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;the statement works, but I don't like warning message. Do you have any idea ?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 14:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174341#M1979301</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-04-28T14:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURENCE ... warning message in Eclipse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174342#M1979302</link>
      <description>&lt;P&gt;Spelling of the word OCCURRENCE : you use one 'R'. Warning asks you to use 2 'R' &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;occurences&lt;BR /&gt;occurrences&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Apr 2020 14:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174342#M1979302</guid>
      <dc:creator>chaouki_akir</dc:creator>
      <dc:date>2020-04-28T14:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURENCE ... warning message in Eclipse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174343#M1979303</link>
      <description>&lt;P&gt;Your statement is not REGEX, the word REGEX is missing &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You may also use (for a regex):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;rv_temps = replace( val = rv_temps regex = '...' with = '0' occ = 0 ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(occ = 0 means all occurrences)&lt;/P&gt;&lt;P&gt;(NB: REPLACE function is slightly slower than REPLACE statement)&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 15:42:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174343#M1979303</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-04-28T15:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURENCE ... warning message in Eclipse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174344#M1979304</link>
      <description>&lt;P&gt;Use OCCURRENCES instead of OCCURENCES (occuRRences vs. occuRences)&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Wrong spelling of option OCCURRENCES in statement REPLACE only leads to syntax warning&lt;/LI&gt;&lt;LI&gt;Wrong spelling of option OCCURRENCES in statement FIND leads to syntax error&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE&gt;" correct spelling of option OCCURRENCES in statement FIND
FIND ALL OCCURRENCES OF ' ' IN rv_temps RESULTS rs.
" wrong spelling of option OCCURRENCES in statement FIND leads to syntax error
FIND ALL OCCURENCES OF ' ' IN rv_temps RESULTS rs.

" correct spelling of option OCCURRENCES in statement REPLACE
REPLACE ALL OCCURRENCES OF ' ' IN rv_temps WITH '0' IN CHARACTER MODE.
" wrong spelling of option OCCURRENCES in statement REPLACE only leads to syntax warning
REPLACE ALL OCCURENCES OF ' ' IN rv_temps WITH '0' IN CHARACTER MODE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1803660-occurences.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 20:43:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174344#M1979304</guid>
      <dc:creator>michael_piesche</dc:creator>
      <dc:date>2020-04-28T20:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURENCE ... warning message in Eclipse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174345#M1979305</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I could read it one hundred times without see that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 05:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174345#M1979305</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-04-29T05:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURENCE ... warning message in Eclipse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174346#M1979306</link>
      <description>&lt;P&gt;my sentence wasn't complete, I would like  to say : I do not use REGEX because I don't know enough REGEX. &lt;/P&gt;&lt;P&gt;For the funny end of the story, I remove all this and replace by the old way (maybe R/2 way): complete field with 0 &lt;/P&gt;&lt;P&gt;And strange things, the code compile with the error in OCCURENCES, but the ABAP UNIT gives me an fatal error with something about loop without end ... &lt;/P&gt;&lt;P&gt;I will try to replace it with a beautiful REGEX &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  Thanks Sandra&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 05:15:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174346#M1979306</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-04-29T05:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURENCE ... warning message in Eclipse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174347#M1979307</link>
      <description>&lt;P&gt;the error was simple, I use a string, so no way to convert blank with 0 &lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 05:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174347#M1979307</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-04-29T05:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURENCE ... warning message in Eclipse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174348#M1979308</link>
      <description>&lt;P&gt;This is a well know spelling error in the ABAP language implementation. &lt;BR /&gt;The keyword was misspelled the keyword in an initial shipment. &lt;BR /&gt;As the correct version ( occurRences ) was only introduced later and customers had adopted the first variant,  for compatibility reasons it could not be removed and both variants work currently.&lt;/P&gt;&lt;P&gt;However, SAP strongly suggest to use the 2nd correct version, thus the warning. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;replace all occurences of ' ' in rv_temps with '0' in character mode.&lt;BR /&gt;replace all occurrences of ' ' in rv_temps with '0' in character mode.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Nov 2021 22:24:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurence-warning-message-in-eclipse/m-p/12174348#M1979308</guid>
      <dc:creator>former_member80669</dc:creator>
      <dc:date>2021-11-10T22:24:36Z</dc:date>
    </item>
  </channel>
</rss>

