<?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 double space by single space in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-double-space-by-single-space/m-p/3651786#M879544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the statement CONDENSE, it does exactly what you want here.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Apr 2008 13:07:44 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2008-04-10T13:07:44Z</dc:date>
    <item>
      <title>Replace double space by single space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-double-space-by-single-space/m-p/3651784#M879542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please tell me how we can replace double space by single space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;Here double space between D and X -&amp;gt; 'ABCD  XY GHU'&lt;/P&gt;&lt;P&gt;Should be like this -&amp;gt; 'ABCD XY GHU'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried &lt;/P&gt;&lt;P&gt;WHILE l_value CA `  `.&lt;/P&gt;&lt;P&gt;        REPLACE `  ` WITH space INTO l_value.        &lt;/P&gt;&lt;P&gt;      ENDWHILE.&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHILE l_value CA '  '.&lt;/P&gt;&lt;P&gt;        REPLACE '  ' WITH space INTO l_value.        "SGA 2A015857&lt;/P&gt;&lt;P&gt;      ENDWHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its not working and giving dump.&lt;/P&gt;&lt;P&gt;Please try to help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Swati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 13:03:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-double-space-by-single-space/m-p/3651784#M879542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T13:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Replace double space by single space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-double-space-by-single-space/m-p/3651785#M879543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare a constant varable with value 2 spaces and do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: c_space(2) type c value '  '.&lt;/P&gt;&lt;P&gt;REPLACE c_space WITH space INTO l_value.&lt;/P&gt;&lt;P&gt;&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;CONDENSE l_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Satish Panakala on Apr 10, 2008 2:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 13:07:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-double-space-by-single-space/m-p/3651785#M879543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T13:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Replace double space by single space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-double-space-by-single-space/m-p/3651786#M879544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the statement CONDENSE, it does exactly what you want here.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 13:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-double-space-by-single-space/m-p/3651786#M879544</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-04-10T13:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Replace double space by single space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-double-space-by-single-space/m-p/3651787#M879545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do a split at space into an internal table and next concatenate all valid entries (the ones which CA sy-abcde) into an new field separated by space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 13:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-double-space-by-single-space/m-p/3651787#M879545</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-10T13:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Replace double space by single space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-double-space-by-single-space/m-p/3651788#M879546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: txt(20) value 'AAA   VVV  TT'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;write: txt.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;condense txt.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;write: txt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 13:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-double-space-by-single-space/m-p/3651788#M879546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T13:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Replace double space by single space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-double-space-by-single-space/m-p/3651789#M879547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swaiti,&lt;/P&gt;&lt;P&gt;U can use CONDENSE statement. This will remove all extra spaces i.e. keeps one space between words.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_value = 'ABCD   XY GHU'.&lt;/P&gt;&lt;P&gt;WRITE:/1  l_value.&lt;/P&gt;&lt;P&gt;CONDENSE l_value.&lt;/P&gt;&lt;P&gt;WRITE:/1 l_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Kumar Vemuru on Apr 10, 2008 6:48 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Kumar Vemuru on Apr 10, 2008 6:53 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 13:17:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-double-space-by-single-space/m-p/3651789#M879547</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-04-10T13:17:36Z</dc:date>
    </item>
  </channel>
</rss>

