<?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: Trailing spaces requried in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490974#M839481</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;Check the help on Keyword CONCATENATE, there you find an option 'RESPECTING BLANKS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this option while concatenating two strings, it will keep the blanks intact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mayank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Reward points if its helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Mar 2008 12:01:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-12T12:01:48Z</dc:date>
    <item>
      <title>Trailing spaces requried</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490968#M839475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
Data:
str1(10) type c,
str2(10) type c,
str3(30) type c.

str1 = 'street1   '.
str2 = 'street2   '.
CONCATENATE str1 str2 INTO str3 SEPARATED BY ';'.

Write / str3
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the output obviously will become: &lt;/P&gt;&lt;P&gt;street1;street2. &lt;/P&gt;&lt;P&gt;but what i wanted is to maintain the existing trailings&lt;/P&gt;&lt;P&gt;so it should be: &lt;/P&gt;&lt;P&gt;street1&amp;lt;blank&amp;gt;&amp;lt;blank&amp;gt;&amp;lt;blank&amp;gt;;street2&amp;lt;blank&amp;gt;&amp;lt;blank&amp;gt;&amp;lt;blank&amp;gt;.&lt;/P&gt;&lt;P&gt;It seems the forum also does not allow trailing spaces.&lt;/P&gt;&lt;P&gt;What should I do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 11:40:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490968#M839475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T11:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing spaces requried</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490969#M839476</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;TRU OFFSET IDEA.&lt;/P&gt;&lt;P&gt; DATA:SRC(100).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SRC+0(40) = STREET1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SRC+40(42) = '  '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SRC+42(40) = STREET2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SRC+82(42) = '  '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD POINTS,&lt;/P&gt;&lt;P&gt;KUMAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 11:47:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490969#M839476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T11:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing spaces requried</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490970#M839477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mizan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this for your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data:
str1(10) type c,
str2(10) type c,
str3(30) type c.

str1 = 'street1   '.
str2 = 'street2   '.
CONCATENATE str1 str2 INTO str3 SEPARATED BY ';' RESPECTING BLANKS .

Write / str3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Samson Rodrigues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 11:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490970#M839477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T11:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing spaces requried</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490971#M839478</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 out using offset,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str3+0(15) = str1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str3+15(15) = str2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u will get the spaces as it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balakumar.G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 11:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490971#M839478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T11:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing spaces requried</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490972#M839479</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:&lt;/P&gt;&lt;P&gt;str1(10) TYPE c,&lt;/P&gt;&lt;P&gt;str2(10) TYPE c,&lt;/P&gt;&lt;P&gt;str3(30) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str1 = 'street1   '.&lt;/P&gt;&lt;P&gt;str2 = 'street2   '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str3+0(7) = str1.&lt;/P&gt;&lt;P&gt;str3+11(1) = ';'.&lt;/P&gt;&lt;P&gt;str3+12(7) = str2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE / str3.&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;&lt;/P&gt;&lt;P&gt;V.Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 11:55:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490972#M839479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T11:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing spaces requried</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490973#M839480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use :  RESPECTING BLANKS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE str1 str2 INTO str3 SEPARATED BY ';' RESPECTING BLANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 11:57:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490973#M839480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T11:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing spaces requried</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490974#M839481</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;Check the help on Keyword CONCATENATE, there you find an option 'RESPECTING BLANKS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this option while concatenating two strings, it will keep the blanks intact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mayank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Reward points if its helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 12:01:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490974#M839481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T12:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing spaces requried</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490975#M839482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Data:
str1(10) type c,
str2(10) type c,
str3(30) type c,
str4(10) type c.

str4 = '      '.
str1 = 'street1   '.
str2 = 'street2    '.
CONCATENATE str1 str2 INTO str3 SEPARATED BY  str4.

Write / str3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i hv changed ur code like this i have add str4 for space now it will display all trailing spaces please check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 12:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490975#M839482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T12:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing spaces requried</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490976#M839483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the the addition for CONCATENATE statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... RESPECTING BLANKS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Effect&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;The addition RESPECTING BLANKS is only allowed during string processing and causes the closing spaces for data objects dobj1 dobj2 ... or rows in the internal table itab to be taken into account. Without the addon, this is only the case with string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;With addition RESPECTING BLANKS, statement CONCATENATE can be used in order to assign any character strings EX&amp;gt;text - taking into account the closing empty character - to target str of type string: CLEAR str. CONCATENATE str text INTO str RESPECTING BLANKS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES text   TYPE c LENGTH 10. 
DATA  itab   TYPE TABLE OF text. 
DATA  result TYPE string. 

APPEND 'When'  TO itab. 
APPEND 'the'   TO itab. 
APPEND 'music' TO itab. 
APPEND 'is'    TO itab. 
APPEND 'over'  TO itab. 

CONCATENATE LINES OF itab INTO result SEPARATED BY space. 
... 
CONCATENATE LINES OF itab INTO result RESPECTING BLANKS.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the first CONCATENATE statement, result contains "When_the_music_is_over", after the second statement it contains "When______the_______music_____is________ over______" . The underscores here represent blank characters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 12:07:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490976#M839483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T12:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing spaces requried</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490977#M839484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doesn't seem too practical for the separator if the data extracted is dynamicly but based on the field length specified locally. But anyhow seems 'RESPECTING BLANKS' do not work for 4.7. I heard there is a way to use TRANSLATE still testing it out right now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2008 02:16:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490977#M839484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-13T02:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing spaces requried</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490978#M839485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;str1(10) type c,&lt;/P&gt;&lt;P&gt;str2(10) type c,&lt;/P&gt;&lt;P&gt;str3(30) type c,&lt;/P&gt;&lt;P&gt;str4(10) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str4 = '      ;'.&lt;/P&gt;&lt;P&gt;str1 = 'street1   '.&lt;/P&gt;&lt;P&gt;str2 = 'street2    '.&lt;/P&gt;&lt;P&gt;CONCATENATE str1 str2 INTO str3 SEPARATED BY  str4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write / str3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2008 05:37:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490978#M839485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-13T05:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing spaces requried</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490979#M839486</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;We can't do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2008 05:53:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trailing-spaces-requried/m-p/3490979#M839486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-13T05:53:36Z</dc:date>
    </item>
  </channel>
</rss>

