<?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: Removing excess space in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301034#M1391075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't use NO-GAPS addition with CONDENCE just use only CONDENCE and it will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: VAR1 TYPE STRING VALUE '3455 3454 3423 '. " Normal Space.. will not work if you do ALT+255
DATA: LEN TYPE I.

CONDENSE VAR1.

WRITE: / VAR1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for my curiosity can you explain me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the difference between normal space and space (ALT + 255) ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering why it behaves differently with these two things...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ilesh Nandaniya&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Nov 2009 05:14:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-06T05:14:37Z</dc:date>
    <item>
      <title>Removing excess space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301028#M1391069</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 field 'zxxx'.&lt;/P&gt;&lt;P&gt;In the program i have spl characters in between so&lt;/P&gt;&lt;P&gt;so i executed the following code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF i_zpem-xxxxx CA '~!@#$%^&amp;amp;*()-:;/'.&lt;/P&gt;&lt;P&gt;  REPLACE ALL OCCURRENCES OF REGEX '[ [:punct:] ]' IN I_Zpem-xxxx WITH ''.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its working fine but there is an extra space coming in at the end  for some values &lt;/P&gt;&lt;P&gt;Ex :  '23452sdfg  '&lt;/P&gt;&lt;P&gt;       '236767dfg'&lt;/P&gt;&lt;P&gt;       '73452sdf87  '&lt;/P&gt;&lt;P&gt;       '2345 2356'   " note this is valid,space can be in the middle&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;so we cannot use condence because space in the middle is accepted so &lt;/P&gt;&lt;P&gt;how can we remove the space at the end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 04:26:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301028#M1391069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T04:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Removing excess space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301029#M1391070</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;You can use &lt;STRONG&gt;CONDENSE&lt;/STRONG&gt; with &lt;STRONG&gt;NO-GAPS&lt;/STRONG&gt; addition. This will supress the space even if it's in the middle of the string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 04:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301029#M1391070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T04:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Removing excess space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301030#M1391071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikranth ,&lt;/P&gt;&lt;P&gt;We cannot use CONDENCE with NOGAPS because space is accepted in middle for few fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:   &lt;STRONG&gt;'2435 2456 5785'&lt;/STRONG&gt;     " it is a valid entry&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;'3455 3454 3423  '&lt;/STRONG&gt;   " it is not a valid entry because there is extra space at the end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 04:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301030#M1391071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T04:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Removing excess space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301031#M1391072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: var1 type string value '3455 3454 3423&amp;nbsp;'.  " give space using Alt+255
data: len type i.

len = strlen( var1 ).
len = len - 1.

var1 = var1+0(len).

write:/ var1.&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>Fri, 06 Nov 2009 04:41:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301031#M1391072</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-11-06T04:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Removing excess space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301032#M1391073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh &lt;/P&gt;&lt;P&gt;the out put length varies &lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;'23453434  '&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'2435 2456 5785'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;'3455 3454 3423 '&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;'3455 3456 2567'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'3454677453  '&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3678 4267 8545  '&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the length varries so how can we implement this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 04:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301032#M1391073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T04:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Removing excess space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301033#M1391074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since it is defined as variable, the above code works for any string length.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 04:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301033#M1391074</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-11-06T04:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Removing excess space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301034#M1391075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't use NO-GAPS addition with CONDENCE just use only CONDENCE and it will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: VAR1 TYPE STRING VALUE '3455 3454 3423 '. " Normal Space.. will not work if you do ALT+255
DATA: LEN TYPE I.

CONDENSE VAR1.

WRITE: / VAR1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for my curiosity can you explain me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the difference between normal space and space (ALT + 255) ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering why it behaves differently with these two things...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ilesh Nandaniya&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 05:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301034#M1391075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T05:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Removing excess space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301035#M1391076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ravi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare  like this ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : z(10) type c value  '1234 56  ' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : k(10)  type n    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : m type i .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;k = z .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;m  = i .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write  m  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Deepak .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 05:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301035#M1391076</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2009-11-06T05:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Removing excess space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301036#M1391077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 09:09:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-excess-space/m-p/6301036#M1391077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T09:09:25Z</dc:date>
    </item>
  </channel>
</rss>

