<?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: Itab to string variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-to-string-variable/m-p/3214704#M766520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swami,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   If my understanding is correct. Check the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Loop at itab.&lt;/P&gt;&lt;P&gt;   concatenate  string  itab-field1 into string.&lt;/P&gt;&lt;P&gt;(You can use specific feild separator to make an identity of each record.)&lt;/P&gt;&lt;P&gt; Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Dec 2007 05:07:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-14T05:07:27Z</dc:date>
    <item>
      <title>Itab to string variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-to-string-variable/m-p/3214703#M766519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;halo,&lt;/P&gt;&lt;P&gt;      I ' ve an itab which has 2 fields out of which 1 field has longtext as its&lt;/P&gt;&lt;P&gt;content(in no.of records)..i want to move all these records(longtext) into&lt;/P&gt;&lt;P&gt;a string variable which inturn i'm passing to an attribute of a method.&lt;/P&gt;&lt;P&gt;Is it possible to move the records of an itab to a string variable? if so, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;-Swaminathan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 04:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-to-string-variable/m-p/3214703#M766519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-14T04:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Itab to string variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-to-string-variable/m-p/3214704#M766520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swami,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   If my understanding is correct. Check the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Loop at itab.&lt;/P&gt;&lt;P&gt;   concatenate  string  itab-field1 into string.&lt;/P&gt;&lt;P&gt;(You can use specific feild separator to make an identity of each record.)&lt;/P&gt;&lt;P&gt; Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 05:07:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-to-string-variable/m-p/3214704#M766520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-14T05:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Itab to string variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-to-string-variable/m-p/3214705#M766521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: it001 type table of t001 with header line.&lt;/P&gt;&lt;P&gt;data: string type string.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select * into table it001 from t001.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at it001.&lt;/P&gt;&lt;P&gt; concatenate string it001 into string separated by ','.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;shift string left deleting leading ','.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;write:/ string.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 05:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-to-string-variable/m-p/3214705#M766521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-14T05:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Itab to string variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-to-string-variable/m-p/3214706#M766522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swami,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For moving the internal table value to local variable it will be like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE int_tab with key pernr = p_pernr&lt;/P&gt;&lt;P&gt;  for all entries in int_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loc_pernr = int_tab-pernr.&lt;/P&gt;&lt;P&gt;loc_name = int_tab-name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this way you can move value from internal table to local variable.&lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;Using the below method you will be moving the value from local varaible to internal table by this method.&lt;/P&gt;&lt;P&gt;Here loc_nname,loc_init are local variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE nachn inits FROM pa0002&lt;/P&gt;&lt;P&gt;                              INTO (loc_name,loc_init)&lt;/P&gt;&lt;P&gt;                             WHERE pernr EQ int_employee-wf_pernr."#EC *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE loc_name loc_init&lt;/P&gt;&lt;P&gt;    INTO int_employee-wf_ename SEPARATED BY ', '.&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;Sakthi C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;Rewards if useful&lt;/STRONG&gt;&lt;/DEL&gt;*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 05:20:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-to-string-variable/m-p/3214706#M766522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-14T05:20:26Z</dc:date>
    </item>
  </channel>
</rss>

