<?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 OCCURRENCES ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242789#M1526567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : CHAR(300) TYPE c VALUE '18.08.2003: Typenschein; Typenscheintausch; Rechnung Autohaus Brunner'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF ';' in char with ','.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output I get is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;18.08.2003: Typenschein, Typenscheintausch, Rechnung Autohaus Brunner&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the declaration for the field you have provided for satz-text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sujay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Oct 2010 13:52:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-05T13:52:05Z</dc:date>
    <item>
      <title>REPLACE ALL OCCURRENCES ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242787#M1526565</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 have a character-field containing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"18.08.2003: Typenschein; Typenscheintausch; Rechnung Autohaus Brunner"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to replace all the ; with ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE ALL OCCURRENCES OF ';' IN satz-text WITH ','.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result now is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"18.08.2003: Typenschein, Typenscheintausch; Rechnung Autohaus Brunner"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHY only the FIRST ; is replaced and not the second ????????????????????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg, Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 13:44:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242787#M1526565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-05T13:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURRENCES ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242788#M1526566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No idea why it doesn't work unless the second ';' is not really a ';'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But try it with :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;translate satz-text using ';,'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 13:51:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242788#M1526566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-05T13:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURRENCES ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242789#M1526567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : CHAR(300) TYPE c VALUE '18.08.2003: Typenschein; Typenscheintausch; Rechnung Autohaus Brunner'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF ';' in char with ','.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output I get is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;18.08.2003: Typenschein, Typenscheintausch, Rechnung Autohaus Brunner&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the declaration for the field you have provided for satz-text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sujay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 13:52:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242789#M1526567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-05T13:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURRENCES ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242790#M1526568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;coding looks like this. satz is a internal table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:     BEGIN OF satz OCCURS 0,                     "Ausgabestruktur
             krednr(8) TYPE n,                        "Kreditaktennummer
             doktyp(2) TYPE c,
             ardate TYPE d,
             pfad(100) TYPE c,
             text(150) TYPE c,
             url(200) TYPE c,                     "URL für Verbindung
END OF satz.
.
.
.
.
 LOOP AT satz.

    REPLACE ALL OCCURRENCES OF ';' IN satz-text WITH ','.          "01a&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 13:58:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242790#M1526568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-05T13:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURRENCES ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242791#M1526569</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 tried this it is working fine ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------" /&gt;&lt;P&gt;DATA : lv_char TYPE char300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_char = '18.08.2003: Typenschein; Typenscheintausch; Rechnung; Autohaus; Brunner'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : lv_char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF ';' IN lv_char WITH ','.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : lv_char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------" /&gt;&lt;P&gt;and Result is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;18.08.2003: Typenschein; Typenscheintausch; Rechnung; Autohaus; Brunner&lt;/P&gt;&lt;P&gt;18.08.2003: Typenschein, Typenscheintausch, Rechnung, Autohaus, Brunner&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;JK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 14:07:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242791#M1526569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-05T14:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURRENCES ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242792#M1526570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just maybe the entire text is not within satz-text field.  &lt;/P&gt;&lt;P&gt;I dont see any reason why this wouldn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 14:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242792#M1526570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-05T14:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURRENCES ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242793#M1526571</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 tried it &amp;amp; it is working fine, so no idea why it is not working at your end.&lt;/P&gt;&lt;P&gt;If you do not have any other option then try this :&lt;/P&gt;&lt;P&gt; Split the string at &lt;STRONG&gt;;&lt;/STRONG&gt; into 3 variables and then concatenate it seperated by &lt;STRONG&gt;,&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;This should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 14:23:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242793#M1526571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-05T14:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURRENCES ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242794#M1526572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help but i stil don't get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried it with 'normal' declaration of the char-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COULD it be the problem that the field is part of the structure of the internal table and not an 'standalone-field' ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg, Maritn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:     BEGIN OF satz occurs 0,                     "Ausgabestruktur
             krednr(8) TYPE n,                        "Kreditaktennummer
             doktyp(2) type c,
             ardate type d,
             pfad(100) TYPE c,
             text(150) TYPE c,
             url(200) TYPE c,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 14:53:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242794#M1526572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-05T14:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURRENCES ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242795#M1526573</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;probably you did not modify your itab correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;fields-symbols:
  &amp;lt;satz&amp;gt; like satz.
 LOOP AT satz assigning &amp;lt;satz&amp;gt;.
 
    REPLACE ALL OCCURRENCES OF ';' IN  &amp;lt;satz&amp;gt;-text WITH ','.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is still far from state of the art (internal tables with header line declared wit OCCURS are obsolete) but use of a field-symbol will speed up the process. &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>Tue, 05 Oct 2010 15:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242795#M1526573</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-10-05T15:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURRENCES ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242796#M1526574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE satz-text USING ';,'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Che&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 16:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242796#M1526574</guid>
      <dc:creator>che_eky</dc:creator>
      <dc:date>2010-10-05T16:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURRENCES ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242797#M1526575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was suggested already, please read the replies before posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES does work as well under normal circumstances, there might be some goofy code page problem or whatever, I assume the information presented here so far does not allow finding the root cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 16:22:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242797#M1526575</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-10-05T16:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE ALL OCCURRENCES ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242798#M1526576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just a guess!!&lt;/P&gt;&lt;P&gt;If you have copy pasted the below text from some other editor, maybe the semicolon is not recognised by abap editor. Try deleting this message and type in again in your editor and check if it works. This happens sometimes with apostrophe.&lt;/P&gt;&lt;P&gt;"18.08.2003: Typenschein; Typenscheintausch; Rechnung Autohaus Brunner"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 16:35:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurrences/m-p/7242798#M1526576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-05T16:35:13Z</dc:date>
    </item>
  </channel>
</rss>

