<?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: CONCATENATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528842#M573187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data : a(10) type c value 'INDIA',
b(20) type c value 'HELLO',
c(40) type c,
sp(4) value '    '.

concatenate a b into c seperated by sp.

write c.


&lt;/CODE&gt;&lt;/PRE&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>Wed, 11 Jul 2007 07:46:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-11T07:46:12Z</dc:date>
    <item>
      <title>CONCATENATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528840#M573185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Suppose if i have 2 strings which is concatenate into another variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : a(10) type c value 'INDIA',&lt;/P&gt;&lt;P&gt;         b(20) type c value 'HELLO',&lt;/P&gt;&lt;P&gt;        c(40) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate a b into c seperated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result will be = INDIA HELLO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result will have only single space, if i need to increase the space what should i do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good answer can be awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 07:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528840#M573185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T07:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: CONCATENATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528841#M573186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;concatenate a space space b into c seperated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output - INDIA   HELLO i.e 3 blank spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 07:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528841#M573186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T07:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: CONCATENATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528842#M573187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data : a(10) type c value 'INDIA',
b(20) type c value 'HELLO',
c(40) type c,
sp(4) value '    '.

concatenate a b into c seperated by sp.

write c.


&lt;/CODE&gt;&lt;/PRE&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>Wed, 11 Jul 2007 07:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528842#M573187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T07:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: CONCATENATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528843#M573188</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;Do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : a(10) type c value 'INDIA',
b(20) type c value 'HELLO',
c(40) type c,
blank(6) value '       '." CHeck here

concatenate a b into c seperated by blank." CHeck here
write c.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 07:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528843#M573188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T07:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: CONCATENATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528844#M573189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate a ' ' b into c seperated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 07:47:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528844#M573189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T07:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: CONCATENATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528845#M573190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The CONCATENATE statement combines two or more separate strings into one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE c1 ... cn INTO c [SEPARATED BY s].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement concatenates the character fields c1 to cn and assigns the result to c. The system ignores spaces at the end of the individual source strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The addition SEPARATED BY s allows you to specify a character field s which is placed in its defined length between the individual fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the result fits into c, sy-subrc is set to 0. However, if the result has to be truncated, sy-subrc is set to 4.&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: c1(10) TYPE c VALUE  'Sum',&lt;/P&gt;&lt;P&gt;      c2(3)  TYPE c VALUE  'mer',&lt;/P&gt;&lt;P&gt;      c3(5)  TYPE c VALUE  'holi ',&lt;/P&gt;&lt;P&gt;      c4(10) TYPE c VALUE  'day',&lt;/P&gt;&lt;P&gt;      c1 (30) TYPE c,&lt;/P&gt;&lt;P&gt;      sep(3) TYPE c VALUE ' - '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE c1 c2 c3 c4 INTO c5.&lt;/P&gt;&lt;P&gt;WRITE c5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE c1 c2 c3 c4 INTO c5 SEPARATED BY sep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE / c5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Summerholiday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum - mer - holi - day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In c1 to c5, the trailing blanks are ignored. The separator sep retains them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Rewards point if helpful.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;P&gt;Abhay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 07:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528845#M573190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T07:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: CONCATENATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528846#M573191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : a(10) type c value 'INDIA',&lt;/P&gt;&lt;P&gt;b(20) type c value 'HELLO',&lt;/P&gt;&lt;P&gt;c(40),&lt;/P&gt;&lt;P&gt;sep(4) value ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate a b into c sep&amp;lt;b&amp;gt;a&amp;lt;/b&amp;gt;rated by sep.&lt;/P&gt;&lt;P&gt;write c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;first declare the seperator and then check the spelling of separated..&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 07:49:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528846#M573191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T07:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: CONCATENATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528847#M573192</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;P&gt;data : a(10) type c value 'INDIA          ',&lt;/P&gt;&lt;P&gt;b(20) type c value '        HELLO',&lt;/P&gt;&lt;P&gt;c(40) type c.&lt;/P&gt;&lt;P&gt;concatenate a b into c separated by  space.&lt;/P&gt;&lt;P&gt;write c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 07:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528847#M573192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T07:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: CONCATENATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528848#M573193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;gud..&lt;/P&gt;&lt;P&gt;SEPARATED not seperated..kindly do the changes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnaks&lt;/P&gt;&lt;P&gt;jaideep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 07:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528848#M573193</guid>
      <dc:creator>jaideeps</dc:creator>
      <dc:date>2007-07-11T07:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: CONCATENATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528849#M573194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Corrected !!&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : a type string,&lt;/P&gt;&lt;P&gt;b type string,&lt;/P&gt;&lt;P&gt;c type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a = 'INDIA'.&lt;/P&gt;&lt;P&gt;b = 'HELLO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate a '   ' b into c respecting blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 08:12:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528849#M573194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T08:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: CONCATENATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528850#M573195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi purna&lt;/P&gt;&lt;P&gt;Try out the following which will really help out....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;data : a(10) type c value 'INDIA',&lt;/P&gt;&lt;P&gt;b(20) type c value 'HELLO',&lt;/P&gt;&lt;P&gt;c(40) type c,&lt;/P&gt;&lt;P&gt;sp(4) value '    '.// make sure that you count the length according to the spaces&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;concatenate a b into c seperated by sp .&lt;/P&gt;&lt;P&gt;write c.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 09:28:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/2528850#M573195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T09:28:22Z</dc:date>
    </item>
  </channel>
</rss>

