<?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/3590842#M864583</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;Concatenation is the process of joining the multiple strings into a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables which are used for the concatenation must have the data type of C,N,D,T and STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can't use the internal table directly for storing the concatenated data into any of its fields.&lt;/P&gt;&lt;P&gt;If you want to do so, then, declare a STRING variable and store the concatenated information&lt;/P&gt;&lt;P&gt;in it and move it to the internal table filed through the work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_data type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of type1,&lt;/P&gt;&lt;P&gt;             str(2000) type c,&lt;/P&gt;&lt;P&gt;          end of type1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa2 type type1,&lt;/P&gt;&lt;P&gt;        itab2 type table of type1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have some data in the internal table itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa1.&lt;/P&gt;&lt;P&gt;   concatenate wa1-field1 wa1-field2 wa1-field2 ... into v_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   move v_data to wa2-str.&lt;/P&gt;&lt;P&gt;   move wa2 to itab2.&lt;/P&gt;&lt;P&gt;   append itab2.&lt;/P&gt;&lt;P&gt;   clear wa2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the above example may give the clear idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it solves ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chandrak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chandrasekhar Kottapally on Apr 2, 2008 5:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2008 15:04:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-02T15:04:36Z</dc:date>
    <item>
      <title>concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/3590836#M864577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is meaning of this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate 'Result:'  itab_batch_char-value_char into itab_deviation_array-cal_results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where above itab_batch_char and  itab_deviation_array are internal tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2008 13:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/3590836#M864577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-29T13:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/3590837#M864578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai dongrie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  In your code ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  u are using two internal tables in concatenate statement.&lt;/P&gt;&lt;P&gt;but , u should specify only Character type(C,N,D,T ,STRING)&lt;/P&gt;&lt;P&gt;values only in this statement. So, it gives Error if u try to execute this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it useful, reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;G.V.K.Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2008 19:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/3590837#M864578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-29T19:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/3590838#M864579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranouti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means exactly what the statement CONCATENATE is designed for: the content of 'Result:' and itab_batch_char-value_char is concatenated into the structure itab_deviatio_array-cal_result (without SPACE delimiter). All the cancatenated attributes have to have to types C,N,D,T or String. Otherwise it dumps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An additional recommendation: Never ever use Header lines of an internal table. Instead use the LOOP at &amp;lt;table&amp;gt; into &amp;lt;structure&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Heinz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2008 23:08:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/3590838#M864579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-29T23:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/3590839#M864580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;better you convert all variables in Character or string and then concatenate in the same type of variable.&lt;/P&gt;&lt;P&gt;you can use only fields values or string value to contenate, it may a field of internal table of separate string or a constant string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgs,&lt;/P&gt;&lt;P&gt;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2008 10:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/3590839#M864580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-30T10:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/3590840#M864581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your questions is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;what is meaning of this...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate 'Result:' itab_batch_char-value_char into itab_deviation_array-cal_results&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where above itab_batch_char and itab_deviation_array are internal tables.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are concatenating the value of &lt;STRONG&gt;value_char&lt;/STRONG&gt;  field of table &lt;STRONG&gt;itab_batch_char&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 into &lt;STRONG&gt;cal_results&lt;/STRONG&gt; field of table &lt;STRONG&gt;itab_deviation_array&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If both those fields are of char type then you can use this stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data : begin of itab occurs 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;value type c,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;end of itab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data : begin of itab1 occurs 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;value(20) type c,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;end of itab1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;itab-value = '501'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;append itab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;loop at itab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;write : / itab-value.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endloop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;concatenate 'Result : 'itab-value into itab1-value.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;loop at itab1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;write : / itab1-value.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endloop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Award points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 20:02:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/3590840#M864581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T20:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/3590841#M864582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Concatenate 'Result:' itab_batch_char-value_char into itab_deviation_array-cal_results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here itab_batch_char[] and itab_deviation_array[] are internal tables but itab_batch_char and itab_deviation_array may be the header line of these internal tables. So the 'Result:'  and the header value of itab_batch_char-value_char  are concatenated into header value of itab_deviation_array-cal_results&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 13:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/3590841#M864582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T13:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/3590842#M864583</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;Concatenation is the process of joining the multiple strings into a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables which are used for the concatenation must have the data type of C,N,D,T and STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can't use the internal table directly for storing the concatenated data into any of its fields.&lt;/P&gt;&lt;P&gt;If you want to do so, then, declare a STRING variable and store the concatenated information&lt;/P&gt;&lt;P&gt;in it and move it to the internal table filed through the work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_data type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of type1,&lt;/P&gt;&lt;P&gt;             str(2000) type c,&lt;/P&gt;&lt;P&gt;          end of type1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa2 type type1,&lt;/P&gt;&lt;P&gt;        itab2 type table of type1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have some data in the internal table itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa1.&lt;/P&gt;&lt;P&gt;   concatenate wa1-field1 wa1-field2 wa1-field2 ... into v_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   move v_data to wa2-str.&lt;/P&gt;&lt;P&gt;   move wa2 to itab2.&lt;/P&gt;&lt;P&gt;   append itab2.&lt;/P&gt;&lt;P&gt;   clear wa2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the above example may give the clear idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it solves ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chandrak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chandrasekhar Kottapally on Apr 2, 2008 5:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 15:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/3590842#M864583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T15:04:36Z</dc:date>
    </item>
  </channel>
</rss>

