<?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: how to store internal table value in single variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838729#M1472750</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is storing in value in reverse order&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Apr 2010 11:11:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-16T11:11:05Z</dc:date>
    <item>
      <title>how to store internal table value in single variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838723#M1472744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have 3 value in int table , so want to store the value of int table into single variable of type string.&lt;/P&gt;&lt;P&gt;how it is possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 10:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838723#M1472744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T10:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to store internal table value in single variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838724#M1472745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use CONCATENATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 10:49:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838724#M1472745</guid>
      <dc:creator>PedroGuarita</dc:creator>
      <dc:date>2010-04-16T10:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to store internal table value in single variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838725#M1472746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; i have 3 value in int table , so want to store the value of int table into single variable of type string.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before answering , why do you want to do this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 10:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838725#M1472746</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-16T10:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to store internal table value in single variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838726#M1472747</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:
  w_string type string.

loop at t_tab into fs_tab.
concatenate fs_tab-field1 w_string into w_string seperated by space.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards and Best wishes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 10:54:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838726#M1472747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T10:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to store internal table value in single variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838727#M1472748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my int table has only one field, nd that field contain 3 values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i want that 3 values to be store in single variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 10:54:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838727#M1472748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T10:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to store internal table value in single variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838728#M1472749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm, your requirement is kinda weird and you could have given us a bit more info, but well lets start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is your requirement weird?&lt;/P&gt;&lt;P&gt;Well an internal table kinda is a variable itself, or rather a set of variables which together make up for a line type of your table.&lt;/P&gt;&lt;P&gt;So you have a value you already have in a variable and now want to store it in anotherone? Seems weird.&lt;/P&gt;&lt;P&gt;What type is your internal table?&lt;/P&gt;&lt;P&gt;Do you have those three values in one record or in  three records which only hold one value each?&lt;/P&gt;&lt;P&gt;Which of your values do you want to store in another variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, make a F1 on the "READ TABLE" statement, this should definiteley help you.&lt;/P&gt;&lt;P&gt;The "LOOP AT WHERE" statement could as well help if there should occur probrlem using READ TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/edit DAMn i was posting this while you gave us more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So still the question stays if you got your three values in one record or in three records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: lv_variabl_containing_all      type char100.

loop at itab into wa.
  concatenate lv_variabl_containing_all wa-value into lv_variabl_containing_all seperated by space.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the loop you now got all your values in lv_variabl_containing_all.&lt;/P&gt;&lt;P&gt;That is for the case you got three records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other case would be&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Read table itab into wa index 1.
concatenate wa-value1 wa-value2 wa-value3 into lv_variabl_containing_all.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Florian Kemmer on Apr 16, 2010 12:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 10:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838728#M1472749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T10:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to store internal table value in single variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838729#M1472750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is storing in value in reverse order&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 11:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838729#M1472750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T11:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to store internal table value in single variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838730#M1472751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well so you need to sort your itab BEFORE looping at it the way you need it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/edit typos corrected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Florian Kemmer on Apr 16, 2010 1:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 11:12:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838730#M1472751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T11:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to store internal table value in single variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838731#M1472752</link>
      <description>&lt;P&gt;I get result in post1 field and in that field data i get that is a string &lt;/P&gt;&lt;P&gt;from that string i have take first 8 characters excluding dot&lt;/P&gt;&lt;P&gt;but getting multiple rows with different data  in amdp&lt;/P&gt;&lt;P&gt;so how can i solve this?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 11:34:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838731#M1472752</guid>
      <dc:creator>former_member670996</dc:creator>
      <dc:date>2020-04-24T11:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to store internal table value in single variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838732#M1472753</link>
      <description>&lt;P&gt;Use Move corresponding&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Sanjaya Kunar&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 06:17:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-store-internal-table-value-in-single-variable/m-p/6838732#M1472753</guid>
      <dc:creator>sanjaya1234</dc:creator>
      <dc:date>2023-12-18T06:17:13Z</dc:date>
    </item>
  </channel>
</rss>

