<?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: Adding Spaces in the variable. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642310#M1284126</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;CONCATENATE is not going to be of any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
V_STR1 TYPE CHAR10 VALUE '123456',
V_STR2 TYPE CHAR4 VALUE '1234',
V_STR TYPE STRING.

MOVE V_STR1 TO V_STR.

V_STR+10 = V_STR2.

WRITE: V_STR.&lt;/CODE&gt;&lt;/PRE&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;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2009 12:26:07 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2009-05-14T12:26:07Z</dc:date>
    <item>
      <title>Adding Spaces in the variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642302#M1284118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem scenario is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a varaible of type c and length 10, and its filled with only 6 characters. Further there is another Variable of type c and size 4 , both need to concatenated . &lt;/P&gt;&lt;P&gt;The problem is when I concatenate both variables they come up joined. I need to have the 4 characters space between both variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 12:14:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642302#M1284118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T12:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Spaces in the variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642303#M1284119</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;If the variable has spaces at the end, these spaces are generally ignored.&lt;/P&gt;&lt;P&gt;So, when you concatenate both the variables, you would not get spaces in between.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the variable is sure to have only 6 digits,&lt;/P&gt;&lt;P&gt;you can use the concatenate statement to separate it by 4 spaces:&lt;/P&gt;&lt;P&gt;concatenate varA varB separated by '    '.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 12:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642303#M1284119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T12:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Spaces in the variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642304#M1284120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: w_num1(10) TYPE c VALUE '123456',&lt;/P&gt;&lt;P&gt;      w_num2(4)  TYPE c VALUE '1234',&lt;/P&gt;&lt;P&gt;      w_space(4) TYPE c,&lt;/P&gt;&lt;P&gt;      w_num(20)  TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE w_num1 w_num2 INTO w_num SEPARATED BY w_space.&lt;/P&gt;&lt;P&gt;WRITE w_num.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 12:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642304#M1284120</guid>
      <dc:creator>former_member242255</dc:creator>
      <dc:date>2009-05-14T12:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Spaces in the variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642305#M1284121</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;  please check the code below. give d as 4spaces in quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: a type string value 'sudarsan',&lt;/P&gt;&lt;P&gt;      b TYPE string  value 'dande',&lt;/P&gt;&lt;P&gt;      c type string,&lt;/P&gt;&lt;P&gt;      d(4) type c value '    '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE a b INTO c SEPARATED BY d.&lt;/P&gt;&lt;P&gt;WRITE c.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 12:21:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642305#M1284121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T12:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Spaces in the variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642306#M1284122</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 using offset.&lt;/P&gt;&lt;P&gt;e.g data: v1 type char10 value '666666',&lt;/P&gt;&lt;P&gt;     v2 type char4 value '4444',&lt;/P&gt;&lt;P&gt;    v3 type char30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v3(10) = v1.&lt;/P&gt;&lt;P&gt;v3+10(4) = v2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 12:21:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642306#M1284122</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2009-05-14T12:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Spaces in the variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642307#M1284123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;USE Below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: a(10) type c.
a = 'sixsix'.

DATA: b(4) type c.
b = 'four'.

DATA c(12) type c.
CONCATENATE a b INTO c SEPERATED BY SPACE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 12:23:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642307#M1284123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T12:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Spaces in the variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642308#M1284124</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_var4 type char4,&lt;/P&gt;&lt;P&gt;        lv_var10 type char10,&lt;/P&gt;&lt;P&gt;        lv_var14 type char14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate lv_var10&lt;/P&gt;&lt;P&gt;                   space(4)&lt;/P&gt;&lt;P&gt;                   lv_var4 into lv_var14 seperated by space(1).&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;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 12:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642308#M1284124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T12:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Spaces in the variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642309#M1284125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: a type string value 'sudarsan',&lt;/P&gt;&lt;P&gt;b TYPE string value 'dande',&lt;/P&gt;&lt;P&gt;c type string,&lt;/P&gt;&lt;P&gt;d(4) type c value '    '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE a b INTO c SEPARATED BY d.&lt;/P&gt;&lt;P&gt;WRITE c.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 12:25:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642309#M1284125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T12:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Spaces in the variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642310#M1284126</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;CONCATENATE is not going to be of any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
V_STR1 TYPE CHAR10 VALUE '123456',
V_STR2 TYPE CHAR4 VALUE '1234',
V_STR TYPE STRING.

MOVE V_STR1 TO V_STR.

V_STR+10 = V_STR2.

WRITE: V_STR.&lt;/CODE&gt;&lt;/PRE&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;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 12:26:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642310#M1284126</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-05-14T12:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Spaces in the variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642311#M1284127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: var1(10) type c value 'MAHESH'.
DATA: var2(4) type c value 'ABAP'.
DATA: var3(14) type c.
data: var4(4) type c .

var4 = SPACE.

concatenate var1(10) var2(4) into var3 SEPARATED BY var4.

write:/ var3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 12:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642311#M1284127</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-05-14T12:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Spaces in the variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642312#M1284128</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 my understanding is correct&lt;/P&gt;&lt;P&gt; you can use the below method for this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ct(10) TYPE c VALUE '123456',&lt;/P&gt;&lt;P&gt;      gt(4) TYPE c VALUE '7890'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE ct GT INTO result RESPECTING BLANKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ouput will be :&lt;/P&gt;&lt;P&gt;123456    7890&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 12:32:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642312#M1284128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T12:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Spaces in the variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642313#M1284129</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;Your code does not even SYNTAX check !!!  Plz verify before posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AFAIK the OP's req. cannot be met using CONCATENATE stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 12:39:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642313#M1284129</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-05-14T12:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Spaces in the variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642314#M1284130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your replies...&lt;/P&gt;&lt;P&gt;BUT in case when the length first variable keeps on changing as its being returned by a function ex it becomes 7 or 8 then how can i insert 2 or 3 spaces ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 13:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642314#M1284130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T13:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Spaces in the variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642315#M1284131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;find the lenght of the first_variable and then use OFFSET accordingly.&lt;/P&gt;&lt;P&gt;apart from the above replies, u can also try like, put some speacial characters like $, in the place where do u want see the space, then REPLACE these $ with SPACES.&lt;/P&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 18:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-spaces-in-the-variable/m-p/5642315#M1284131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T18:00:16Z</dc:date>
    </item>
  </channel>
</rss>

