<?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: Condense and strlen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/condense-and-strlen/m-p/2010213#M410230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suneetha.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP function &amp;lt;b&amp;gt;STRLEN&amp;lt;/b&amp;gt; returns the length of a string up to the last character that is not a space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &amp;lt;b&amp;gt;CONDENSE&amp;lt;/b&amp;gt; statement deletes redundant spaces from a string: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE &amp;lt;c&amp;gt; [NO-GAPS].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement removes any leading blanks in the field &amp;lt;c&amp;gt; and replaces other sequences of blanks by exactly one blank. The result is a left-justified sequence of words, each separated by one blank. If the addition&amp;lt;b&amp;gt; NO-GAPS&amp;lt;/b&amp;gt; is specified, all blanks are removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;DATA: STR(20) VALUE '  Enjoy with SAP',&lt;/P&gt;&lt;P&gt;     LEN TYPE I.&lt;/P&gt;&lt;P&gt;LEN = STRLEN( STR ).&lt;/P&gt;&lt;P&gt;WRITE : STR,LEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE STR .&lt;/P&gt;&lt;P&gt;LEN = STRLEN( STR ).&lt;/P&gt;&lt;P&gt;WRITE: / STR , LEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE STR  NO-GAPS.&lt;/P&gt;&lt;P&gt;LEN = STRLEN( STR ).&lt;/P&gt;&lt;P&gt;WRITE: / STR , LEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just Execute the above code u will understand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2007 08:37:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-09T08:37:51Z</dc:date>
    <item>
      <title>Condense and strlen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condense-and-strlen/m-p/2010207#M410224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai&lt;/P&gt;&lt;P&gt;I want to know what is difference between strlen and condense function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 08:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condense-and-strlen/m-p/2010207#M410224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T08:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Condense and strlen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condense-and-strlen/m-p/2010208#M410225</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;strlen will give string length.&lt;/P&gt;&lt;P&gt;Returns the length of a character-type field in characters. With c-fields, as opposed to fields with type STRING, only the actual length used is relevant because blanks at the end are not counted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condense.&lt;/P&gt;&lt;P&gt;Shifts the content of the field c to the left, so that sequences of blanks are reduced to exactly one blank. Leading blanks are removed, as are trailing blanks in string type fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA NAME (30). &lt;/P&gt;&lt;P&gt;        NAME(10)    = '    Dr.', &lt;/P&gt;&lt;P&gt;        NAME+10(10) = 'Michael', &lt;/P&gt;&lt;P&gt;        NAME+20(10) = 'Hofmann'. &lt;/P&gt;&lt;P&gt;CONDENSE NAME. &lt;/P&gt;&lt;P&gt;WRITE NAME. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;displays the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dr. Michael Hofmann &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;Sruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 08:23:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condense-and-strlen/m-p/2010208#M410225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T08:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Condense and strlen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condense-and-strlen/m-p/2010209#M410226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;strlen give the length of a string / char field it is giving the integer return like str length 3 or 4 like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condense will delete the spaces in the string/char field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 08:25:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condense-and-strlen/m-p/2010209#M410226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T08:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Condense and strlen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condense-and-strlen/m-p/2010210#M410227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strlen functions gives the number of character in a give character type variable...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Condense :&lt;/P&gt;&lt;P&gt;  suppose u have a field of length 50 characters.. say w_char(50) type c.&lt;/P&gt;&lt;P&gt;  and u have onli 20 characters of data in that variable ... u can use condense function to           &lt;/P&gt;&lt;P&gt;  print onli 20 characters for that field...i mean it deletes the remaining empty characters while printing..&lt;/P&gt;&lt;P&gt;U have one more option &amp;lt;b&amp;gt;condense w_char no-gaps&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;It removes all the gaps even the spaces in between the characters also...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward help ful answers...&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 08:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condense-and-strlen/m-p/2010210#M410227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T08:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Condense and strlen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condense-and-strlen/m-p/2010211#M410228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suneetha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   String length will give the length of the String.&lt;/P&gt;&lt;P&gt;   where as Condense  will reduce the gap existing in String...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the details with examples..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CONDENSE statement deletes redundant spaces from a string: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE &amp;lt;c&amp;gt; [NO-GAPS].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement removes any leading blanks in the field &amp;lt;c&amp;gt; and replaces other sequences of blanks by exactly one blank. The result is a left-justified sequence of words, each separated by one blank. If the addition NO-GAPS is specified, all blanks are removed.&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: STRING(25) VALUE ' one two three four',&lt;/P&gt;&lt;P&gt;LEN TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEN = STRLEN( STRING ).&lt;/P&gt;&lt;P&gt;WRITE: STRING, '!'.&lt;/P&gt;&lt;P&gt;WRITE: / 'Length: ', LEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE STRING.&lt;/P&gt;&lt;P&gt;LEN = STRLEN( STRING ).&lt;/P&gt;&lt;P&gt;WRITE: STRING, '!'.&lt;/P&gt;&lt;P&gt;WRITE: / 'Length: ', LEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE STRING NO-GAPS.&lt;/P&gt;&lt;P&gt;LEN = STRLEN( STRING ).&lt;/P&gt;&lt;P&gt;WRITE: STRING, '!'.&lt;/P&gt;&lt;P&gt;WRITE: / 'Length: ', LEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one two three four !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Length:           25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one two three four !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Length:           18&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;onetwothreefour !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Length:           15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the total length of the field STRING remains unchanged, but that the deleted blanks appear again on the right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 08:26:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condense-and-strlen/m-p/2010211#M410228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T08:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Condense and strlen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condense-and-strlen/m-p/2010212#M410229</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;CONDENSE &amp;lt;c&amp;gt; [NO-GAPS].&lt;/P&gt;&lt;P&gt;Removes leading blanks. Replaces other sequences of blanks with one blank or removes all blanks if NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRLEN * : &lt;/P&gt;&lt;P&gt;Function STRLEN only works with character-type fields and returns the length in characters. The new function XSTRLEN finds the length of byte strings. &lt;/P&gt;&lt;P&gt;[COMPUTE] &amp;lt;n&amp;gt; = STRLEN( &amp;lt;c&amp;gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreevani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 08:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condense-and-strlen/m-p/2010212#M410229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T08:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Condense and strlen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condense-and-strlen/m-p/2010213#M410230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suneetha.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP function &amp;lt;b&amp;gt;STRLEN&amp;lt;/b&amp;gt; returns the length of a string up to the last character that is not a space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &amp;lt;b&amp;gt;CONDENSE&amp;lt;/b&amp;gt; statement deletes redundant spaces from a string: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE &amp;lt;c&amp;gt; [NO-GAPS].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement removes any leading blanks in the field &amp;lt;c&amp;gt; and replaces other sequences of blanks by exactly one blank. The result is a left-justified sequence of words, each separated by one blank. If the addition&amp;lt;b&amp;gt; NO-GAPS&amp;lt;/b&amp;gt; is specified, all blanks are removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;DATA: STR(20) VALUE '  Enjoy with SAP',&lt;/P&gt;&lt;P&gt;     LEN TYPE I.&lt;/P&gt;&lt;P&gt;LEN = STRLEN( STR ).&lt;/P&gt;&lt;P&gt;WRITE : STR,LEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE STR .&lt;/P&gt;&lt;P&gt;LEN = STRLEN( STR ).&lt;/P&gt;&lt;P&gt;WRITE: / STR , LEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE STR  NO-GAPS.&lt;/P&gt;&lt;P&gt;LEN = STRLEN( STR ).&lt;/P&gt;&lt;P&gt;WRITE: / STR , LEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just Execute the above code u will understand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 08:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condense-and-strlen/m-p/2010213#M410230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T08:37:51Z</dc:date>
    </item>
  </channel>
</rss>

