<?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 and Condense in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186510#M127324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its working fine for me too...just copy my code and try in ur system...&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Feb 2006 12:13:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-28T12:13:43Z</dc:date>
    <item>
      <title>Replace and Condense</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186500#M127314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have a string in this way .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;' Welcome # to## ABA#P '&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to remove the occurances of # so that the string output will be &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;' Welcome to ABAP '&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i use the replace and the condense statements, the output is wrong and the data im getting is incorrect and is in the following was ' WelcometoABAP ' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any solution to this ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mustameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 11:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186500#M127314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T11:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Replace and Condense</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186501#M127315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mustameer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes condense will remove leading and closing blanks are completely removed and any other directly consecutive blanks are all replaced by exactly one space character or - if NO-GAPS is specified - are also removed completely.&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;kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 11:43:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186501#M127315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T11:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Replace and Condense</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186502#M127316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use REPLACE ALL OCCURRENCES OF '#' WITH SPACE.&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;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 11:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186502#M127316</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-02-28T11:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Replace and Condense</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186503#M127317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: A(4) TYPE C,A1(20) VALUE 'Welcome # to## ABA#P'.&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '#' IN a1 with space.&lt;/P&gt;&lt;P&gt;write a1.&lt;/P&gt;&lt;P&gt;its working&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 11:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186503#M127317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T11:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Replace and Condense</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186504#M127318</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;PRE&gt;&lt;CODE&gt;string = ' Welcome # to## ABA#P ' 
REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB IN string WITH SPACE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 11:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186504#M127318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T11:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Replace and Condense</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186505#M127319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ourput that i get when i use the all occurances option is 'Welcome  to   ABA P ' as the # will be replaced by a ' ' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i want to know how do i remove this space while maintaining the space b/w the words .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 11:50:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186505#M127319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T11:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Replace and Condense</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186506#M127320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to split the string into two diff strings &amp;amp; use CONDENSE on the string that holds 'ABA P'; And the concatenate the two strings separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 11:57:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186506#M127320</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-02-28T11:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Replace and Condense</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186507#M127321</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;    Just copy paste the code....&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: str type string.

str = 'Welcome # to## ABA#P'.

replace all occurrences of substring '#' in str with ' '.

write: str. " String with gaps..."

condense str.

write: str.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maheswaran.B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 11:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186507#M127321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T11:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Replace and Condense</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186508#M127322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI khan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you have concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field = 'welcome to aba p'.&lt;/P&gt;&lt;P&gt;concatenate field&lt;EM&gt;0(14) field&lt;/EM&gt;15(1) into field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 12:00:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186508#M127322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T12:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replace and Condense</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186509#M127323</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;DATA: A(4) TYPE C,&lt;/P&gt;&lt;P&gt;      A1(20) VALUE 'Wel#ome # to## A#A#P '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '#' IN a1 with space.&lt;/P&gt;&lt;P&gt;write a1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O/p which i got : Welome to AAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i had tried the code and it is wrking fine , infact it will take care of the space by itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 12:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186509#M127323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T12:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Replace and Condense</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186510#M127324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its working fine for me too...just copy my code and try in ur system...&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 12:13:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186510#M127324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T12:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Replace and Condense</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186511#M127325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appropriate points alloted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 12:16:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186511#M127325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T12:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Replace and Condense</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186512#M127326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without your string manipulation you can do the following way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your string ' Welcome # to## ABA#P '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace # value with null value, usually with this '' (single quotes) not with the space.&lt;/P&gt;&lt;P&gt;I think this should resove your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 14:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-and-condense/m-p/1186512#M127326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T14:42:57Z</dc:date>
    </item>
  </channel>
</rss>

