<?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: how to add space before a string a variable. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-add-space-before-a-string-a-variable/m-p/2985520#M704994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate ' ' string into string respecting blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... RESPECTING BLANKS&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Effect &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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &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;TYPES text   TYPE c LENGTH 10. &lt;/P&gt;&lt;P&gt;DATA  itab   TYPE TABLE OF text. &lt;/P&gt;&lt;P&gt;DATA  result TYPE string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND 'When'  TO itab. &lt;/P&gt;&lt;P&gt;APPEND 'the'   TO itab. &lt;/P&gt;&lt;P&gt;APPEND 'music' TO itab. &lt;/P&gt;&lt;P&gt;APPEND 'is'    TO itab. &lt;/P&gt;&lt;P&gt;APPEND 'over'  TO itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE LINES OF itab INTO result SEPARATED BY space. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;CONCATENATE LINES OF itab INTO result RESPECTING BLANKS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if useful.........&lt;/P&gt;&lt;P&gt;Minal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2007 03:43:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-13T03:43:42Z</dc:date>
    <item>
      <title>how to add space before a string a variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-add-space-before-a-string-a-variable/m-p/2985517#M704991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; If i have a string variable  ' 80 '.I want it as '    80 ' ie some space appended before it.&lt;/P&gt;&lt;P&gt;I used  concatenate '   '    variable into variable..Its not working.How to do it??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 03:37:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-add-space-before-a-string-a-variable/m-p/2985517#M704991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T03:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to add space before a string a variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-add-space-before-a-string-a-variable/m-p/2985518#M704992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it will not work...&lt;/P&gt;&lt;P&gt;use shift statement ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 03:42:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-add-space-before-a-string-a-variable/m-p/2985518#M704992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T03:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to add space before a string a variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-add-space-before-a-string-a-variable/m-p/2985519#M704993</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;To add spaces before a string use the SHIFT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : Var(10) type c value 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT VAR BY 1 PLACES LEFT.&lt;/P&gt;&lt;P&gt;WRITE:/ VAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if Helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 03:43:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-add-space-before-a-string-a-variable/m-p/2985519#M704993</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-11-13T03:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to add space before a string a variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-add-space-before-a-string-a-variable/m-p/2985520#M704994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate ' ' string into string respecting blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... RESPECTING BLANKS&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Effect &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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &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;TYPES text   TYPE c LENGTH 10. &lt;/P&gt;&lt;P&gt;DATA  itab   TYPE TABLE OF text. &lt;/P&gt;&lt;P&gt;DATA  result TYPE string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND 'When'  TO itab. &lt;/P&gt;&lt;P&gt;APPEND 'the'   TO itab. &lt;/P&gt;&lt;P&gt;APPEND 'music' TO itab. &lt;/P&gt;&lt;P&gt;APPEND 'is'    TO itab. &lt;/P&gt;&lt;P&gt;APPEND 'over'  TO itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE LINES OF itab INTO result SEPARATED BY space. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;CONCATENATE LINES OF itab INTO result RESPECTING BLANKS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if useful.........&lt;/P&gt;&lt;P&gt;Minal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 03:43:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-add-space-before-a-string-a-variable/m-p/2985520#M704994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T03:43:42Z</dc:date>
    </item>
  </channel>
</rss>

