<?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: table to string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-to-string/m-p/4144077#M990820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use a loop.then take every line of table in one variable and concatenate that variable in one another variable which is having string data type..&lt;/P&gt;&lt;P&gt;like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT string  FROM ztable
    INTO TABLE i_table.
   
loop at i_table.
  wa_string = wa_table.
  CONCATENATE wa_string into wa_longtext.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jul 2008 08:26:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-22T08:26:01Z</dc:date>
    <item>
      <title>table to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-to-string/m-p/4144073#M990816</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;I have a short question. I have created a table with lines of strings.&lt;/P&gt;&lt;P&gt;Now I want to convert these lines of the table to one string.&lt;/P&gt;&lt;P&gt;What is the easiest way to create one string with the entries of the table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Philipp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 08:18:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-to-string/m-p/4144073#M990816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T08:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: table to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-to-string/m-p/4144074#M990817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Philipp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT itab INTO wa.
CONCATENATE string wa INTO string SEPARATED BY space.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Release 6.0 you can also use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONCATENATE LINES OF itab INTO string SEPARATED BY space.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 08:21:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-to-string/m-p/4144074#M990817</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-07-22T08:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: table to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-to-string/m-p/4144075#M990818</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;PRE&gt;&lt;CODE&gt;
data: v_string type string.

loop at itab into wa.
  concatenate v_string into wa-string separated by space.
endloop.

*this is to remove the space in front of the string
condense v_string.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 08:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-to-string/m-p/4144075#M990818</guid>
      <dc:creator>peter_ruiz2</dc:creator>
      <dc:date>2008-07-22T08:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: table to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-to-string/m-p/4144076#M990819</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 i have understood your question correctly. You take an internal with single character string with 1000 length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
types : begin of ty_string,
 string(1000),
           end of ty_string.

data : it_string type standard table of ty_string.


loop at itab into wa_string.
  cocatenate wa_string-field1 wa_string-field2 wa_string-field3 ....into it_string.
  append it_string.
  clear it_string. 
endloop.  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 08:23:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-to-string/m-p/4144076#M990819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T08:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: table to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-to-string/m-p/4144077#M990820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use a loop.then take every line of table in one variable and concatenate that variable in one another variable which is having string data type..&lt;/P&gt;&lt;P&gt;like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT string  FROM ztable
    INTO TABLE i_table.
   
loop at i_table.
  wa_string = wa_table.
  CONCATENATE wa_string into wa_longtext.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 08:26:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-to-string/m-p/4144077#M990820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T08:26:01Z</dc:date>
    </item>
  </channel>
</rss>

