<?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 occurences in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342873#M801456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well normally i´d say the replace commanbd got to work, but this wont help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what about doing the thing by hand?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;search your_string for '##'.&lt;/P&gt;&lt;P&gt;then the position of ## is beeing stored in sy-fdpos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can now split the string into two strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_fdpos = sy-fdpos + 2.&lt;/P&gt;&lt;P&gt;lv_string1 = your_string(sy-fdpos).&lt;/P&gt;&lt;P&gt;lv_string2 = your_string+lv_fdpos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and now :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate lv_string1 lv_string2 into your_string separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2008 13:43:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-30T13:43:04Z</dc:date>
    <item>
      <title>Replace all occurences</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342865#M801448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with this statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just give the code: REPLACE ALL OCCURRENCES OF '##' IN l_comment WITH ' '.&lt;/P&gt;&lt;P&gt;when l_comment value is testing##replace, after reach this command, the result should be &lt;STRONG&gt;testing replace&lt;/STRONG&gt;, but after i debugged it the result become &lt;STRONG&gt;testingreplace&lt;/STRONG&gt;. Is there any symbol for the ' ', except space.. when i use space in the command.. the result still has no space. Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 13:19:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342865#M801448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T13:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Replace all occurences</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342866#M801449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you sure there is no additonal CONDENSE statement which you may have overseen?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 13:21:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342866#M801449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T13:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Replace all occurences</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342867#M801450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No condense for the statement replace occurences.. and i need space, not to omitted the space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 13:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342867#M801450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T13:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Replace all occurences</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342868#M801451</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 this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constants: lv_new_line type c value 'CL_ABAP_CHAR_UTILITIES=&amp;gt;NEWLINE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF lv_new_line IN l_comment WITH space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 13:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342868#M801451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T13:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Replace all occurences</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342869#M801452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE / REPLACE commands&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Narendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 13:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342869#M801452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T13:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Replace all occurences</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342870#M801453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cannot do that, the data consists of ##.. so u must replace the ## with space.. The result still the same, no space between two words.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 13:36:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342870#M801453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T13:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Replace all occurences</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342871#M801454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Data can be Hello##World##Many##obstacle..&lt;/P&gt;&lt;P&gt;U cannot use just replace or translate. Thats why i'm using replace all occurences, but the problem is, after replace the '##' with space, the word doesnt have space between them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 13:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342871#M801454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T13:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Replace all occurences</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342872#M801455</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;You cannot replace entries with SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split l_comment at '##' into str1 str2.&lt;/P&gt;&lt;P&gt;clear l_comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate str1 str2 into l_comment separated by SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 13:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342872#M801455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T13:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Replace all occurences</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342873#M801456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well normally i´d say the replace commanbd got to work, but this wont help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what about doing the thing by hand?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;search your_string for '##'.&lt;/P&gt;&lt;P&gt;then the position of ## is beeing stored in sy-fdpos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can now split the string into two strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_fdpos = sy-fdpos + 2.&lt;/P&gt;&lt;P&gt;lv_string1 = your_string(sy-fdpos).&lt;/P&gt;&lt;P&gt;lv_string2 = your_string+lv_fdpos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and now :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate lv_string1 lv_string2 into your_string separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 13:43:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342873#M801456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T13:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Replace all occurences</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342874#M801457</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;'##' Represents New Line only. So, better Split the data and move to an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT text AT CL_ABAP_CHAR_UTILITIES=&amp;gt;NEWLINE INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't work, try these also cl_abap_char_utilites=&amp;gt;cr_lf &amp;amp; cl_abap_char_utilities=&amp;gt;linefeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 13:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342874#M801457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T13:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Replace all occurences</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342875#M801458</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;If so do split it to an itab and concatenate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like:&lt;/P&gt;&lt;P&gt;DATA: &lt;/P&gt;&lt;P&gt;      itab TYPE TABLE OF string, &lt;/P&gt;&lt;P&gt;      text TYPE string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = `What#a#drag##t is getting old`. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT text AT '##' INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 13:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342875#M801458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T13:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Replace all occurences</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342876#M801459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for ur reply.. put it into internal table.. but doesnt it will time consuming? i already loop the internal table.. the comment is just part of the internal table itself, so by putting into internal table, do u say i must loop the internal table again. And what is the type for the internal table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 13:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342876#M801459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T13:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Replace all occurences</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342877#M801460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;REPLACE '##' WITH new INTO lv_c.  &lt;/P&gt;&lt;P&gt;FIND FIRST OCCURRENCE OF '##' IN lv_c.  &lt;/P&gt;&lt;P&gt;IF sy-subrc IS NOT INITIAL.    &lt;/P&gt;&lt;P&gt;EXIT. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 10:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-all-occurences/m-p/3342877#M801460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T10:58:42Z</dc:date>
    </item>
  </channel>
</rss>

