<?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 concatenate a string with spaces in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8032998#M1610024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ssm and  koolspy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your answer. however, I want THREE spaces between 'X' and 'Y'. Your code will give me only one space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2011 10:36:23 GMT</pubDate>
    <dc:creator>former_member431874</dc:creator>
    <dc:date>2011-07-21T10:36:23Z</dc:date>
    <item>
      <title>how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8032995#M1610021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to concatenate a string with three spaces, for example,&lt;/P&gt;&lt;P&gt;CONCATENATE 'X' SPACE SPACE SPACE 'Y' INTO LV_RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the result I got from executing the above statement is not 'X   Y' as I want, but rather 'XY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try&lt;/P&gt;&lt;P&gt;CONCATENATE 'X' '***' 'Y' INTO LV_RESULT.&lt;/P&gt;&lt;P&gt;REPLACE '***' with '   ' INTO LV_RESULT.&lt;/P&gt;&lt;P&gt;still doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I write ABAP code to archive such a result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea would be appreciated.&lt;/P&gt;&lt;P&gt;Vitthavat A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 10:24:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8032995#M1610021</guid>
      <dc:creator>former_member431874</dc:creator>
      <dc:date>2011-07-21T10:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8032996#M1610022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CONCATENATE 'x' 'y' into lv_string SEPARATED BY space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 10:33:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8032996#M1610022</guid>
      <dc:creator>Shahid</dc:creator>
      <dc:date>2011-07-21T10:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8032997#M1610023</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;PRE&gt;&lt;CODE&gt;
concenate 'x'  'y'  into lv_string seperated by space.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 10:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8032997#M1610023</guid>
      <dc:creator>koolspy_ultimate</dc:creator>
      <dc:date>2011-07-21T10:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8032998#M1610024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ssm and  koolspy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your answer. however, I want THREE spaces between 'X' and 'Y'. Your code will give me only one space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 10:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8032998#M1610024</guid>
      <dc:creator>former_member431874</dc:creator>
      <dc:date>2011-07-21T10:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8032999#M1610025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: lv_string type string.&lt;/P&gt;&lt;P&gt;data: lv_str2 type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'x' ' ' into lv_string SEPARATED BY space.&lt;/P&gt;&lt;P&gt;CONCATENATE ' ' ' ' into lv_str2 SEPARATED BY space.&lt;/P&gt;&lt;P&gt;CONCATENATE lv_string lv_str2 into lv_str2 SEPARATED BY space.&lt;/P&gt;&lt;P&gt;CONCATENATE lv_str2 'y' into lv_string SEPARATED BY space.&lt;/P&gt;&lt;P&gt;write: lv_string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 10:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8032999#M1610025</guid>
      <dc:creator>Shahid</dc:creator>
      <dc:date>2011-07-21T10:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033000#M1610026</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;do not use ' but ` to surround your string (`text ` instead of 'text ').&lt;/P&gt;&lt;P&gt;And then do not use "separeted by".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Oliver Hütköper on Jul 21, 2011 12:40 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 10:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033000#M1610026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-21T10:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033001#M1610027</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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONSTANTS lc_str(3) type c VALUE '   '.
DATA lv_string TYPE string.
CONCATENATE 'x' lc_str lc_str 'y' INTO lv_string SEPARATED BY space.
WRITE lv_string.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;HM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 10:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033001#M1610027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-21T10:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033002#M1610028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

constants  temp(1) type c value ' '.

DATA lv_string TYPE string.

concatenate  'x'  temp temp 'y' into lv_string separated by space.  " use temp no of times for no of spaces.
" i.e if you want 4 spaces then write temp 3 times.
write:/  lv_string.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 10:49:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033002#M1610028</guid>
      <dc:creator>koolspy_ultimate</dc:creator>
      <dc:date>2011-07-21T10:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033003#M1610029</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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CONCATENATE A space space space B INTO C RESPECTING BLANK. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anmol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 10:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033003#M1610029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-21T10:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033004#M1610030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try RESPECTING BLANKS...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONCATENATE 'X' SPACE SPACE SPACE 'Y' INTO LV_RESULT RESPECTING BLANKS.&lt;/CODE&gt;&lt;/PRE&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;Angelo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 10:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033004#M1610030</guid>
      <dc:creator>former_member302911</dc:creator>
      <dc:date>2011-07-21T10:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033005#M1610031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved.&lt;/P&gt;&lt;P&gt;thank you everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i do this:&lt;/P&gt;&lt;P&gt; concatenate IBASIC-KUNNR IBASIC-MATNR into E1KOMG-VAKEY.&lt;/P&gt;&lt;P&gt; lv_len = strlen( E1KOMG-VAKEY ).&lt;/P&gt;&lt;P&gt; lv_shift = 100 - lv_len.&lt;/P&gt;&lt;P&gt; lv_shift = lv_shift - 3.&lt;/P&gt;&lt;P&gt; lv_shift = lv_len + lv_shift.&lt;/P&gt;&lt;P&gt; shift E1KOMG-VAKEY by lv_shift places circular.&lt;/P&gt;&lt;P&gt; concatenate IBASIC-VKORG E1KOMG-VAKEY into E1KOMG-VAKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*while 100 is the length of E1KOMG-VAKEY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 10:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033005#M1610031</guid>
      <dc:creator>former_member431874</dc:creator>
      <dc:date>2011-07-21T10:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033006#M1610032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 10:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033006#M1610032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-21T10:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033007#M1610033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear  Oliver Hütköper and koolspy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your solutions, and it works.&lt;/P&gt;&lt;P&gt;so i awarded points to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyway, while trying the 'respecting blanks', i got an error:&lt;/P&gt;&lt;P&gt;"".", "IN BYTE MODE", "SEPARATED BY ..." or "IN CHARACTER MODE" expected"&lt;/P&gt;&lt;P&gt;not sure what it means. but it's ok. the problem has been solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 11:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033007#M1610033</guid>
      <dc:creator>former_member431874</dc:creator>
      <dc:date>2011-07-21T11:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033008#M1610034</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: lv_str TYPE string, lv_space(5) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'abc' 'def' INTO lv_str SEPARATED BY lv_space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ lv_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 11:53:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033008#M1610034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-21T11:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033009#M1610035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if there is thousands of files then?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 07:23:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033009#M1610035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-06T07:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033010#M1610036</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Contants: lv_space(3) type c value '   '.

Concatenate var1 var2 into var3 separated by lv_space.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Feb 2020 17:45:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033010#M1610036</guid>
      <dc:creator>former_member1230660</dc:creator>
      <dc:date>2020-02-05T17:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to concatenate a string with spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033011#M1610037</link>
      <description>&lt;P&gt;Worked for me thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 17:58:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-concatenate-a-string-with-spaces/m-p/8033011#M1610037</guid>
      <dc:creator>former_member761427</dc:creator>
      <dc:date>2021-07-30T17:58:23Z</dc:date>
    </item>
  </channel>
</rss>

