<?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 Concatenate in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/1985841#M402565</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;I am trying to concatenate 22 fields of an ITAB into another single field of ITAB1 ,... all the fields seperated by | (pipe symbol).&lt;/P&gt;&lt;P&gt;Can anyone tell me if this is the only way I can do it or is there any simple way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;concatenate  wa-f1 wa-f2......wa-f22 into itab1 seperated by '|' .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(  DO I HAVE TO WRITE AN APPEND FOR ITAB1 ? ) &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        ramana peddu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Feb 2007 21:22:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-19T21:22:09Z</dc:date>
    <item>
      <title>Concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/1985841#M402565</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;I am trying to concatenate 22 fields of an ITAB into another single field of ITAB1 ,... all the fields seperated by | (pipe symbol).&lt;/P&gt;&lt;P&gt;Can anyone tell me if this is the only way I can do it or is there any simple way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;concatenate  wa-f1 wa-f2......wa-f22 into itab1 seperated by '|' .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(  DO I HAVE TO WRITE AN APPEND FOR ITAB1 ? ) &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        ramana peddu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 21:22:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/1985841#M402565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-19T21:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/1985842#M402566</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;Using the concatenate statement is the simple way and please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab into wa.
  concatenate wa-f1 wa-f2......wa-f22 into itab1-field1 seperated by '|' .
  append itab1.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: wa_string type string.

loop at itab into wa.
  concatenate wa-f1 wa-f2......wa-f22 into wa_string   seperated by '|' .
  append wa_string to itab.
endloop.
&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 21:27:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/1985842#M402566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-19T21:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/1985843#M402567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the simple way to do..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;* Reward each useful asnwer&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 21:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/1985843#M402567</guid>
      <dc:creator>raja_thangamani</dc:creator>
      <dc:date>2007-02-19T21:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/1985844#M402568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey hii &lt;/P&gt;&lt;P&gt;This is the simplest method available. please use following for code efficiency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_string type (data_element name of itab1-fieldname).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;  concatenate wa-f1 wa-f2......wa-f22 into wa_string   seperated by '|' .&lt;/P&gt;&lt;P&gt;  append wa_string to itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by declaring the type as data element, it will not arise any inconsistency issue later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if u find it useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bbye tac care&lt;/P&gt;&lt;P&gt;Ashwani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 21:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/1985844#M402568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-19T21:37:57Z</dc:date>
    </item>
  </channel>
</rss>

