<?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: array in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/array/m-p/3397248#M815751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no concept of array .. Instead use an Internal table to &lt;/P&gt;&lt;P&gt;populate the values and read them ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say your Internal table has a field F1 ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-f1 = 10.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear  itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-f1 = 20.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear  itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-f1 = 30.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear  itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now internal table has 3 values ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use loop ... endloop to get the values ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; itab-f1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2008 12:11:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-12T12:11:02Z</dc:date>
    <item>
      <title>array</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array/m-p/3397245#M815748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there any concept of array in abap.  if it is there pls tell me the usage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var1 = 10&lt;/P&gt;&lt;P&gt;var2 = 20&lt;/P&gt;&lt;P&gt;var3 = 30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can we store above data as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var1[1] = 10&lt;/P&gt;&lt;P&gt;var1[2] = 20&lt;/P&gt;&lt;P&gt;var1[3] = 30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also pls tell me how to use this in loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 12:02:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array/m-p/3397245#M815748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T12:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: array</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array/m-p/3397246#M815749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG&gt;Santosh B&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no arry concept in ABAP like C language but there is a concept &lt;STRONG&gt;INTERNAL TABLE&lt;/STRONG&gt; it is like arrays in C language &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the following link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it is useful,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mahi&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 12:04:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array/m-p/3397246#M815749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T12:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: array</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array/m-p/3397247#M815750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There is no concept of arrays in ABAP, we use internal tables to hold application data. U can use access internal tables with index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table itab index l_index this is same as u do in case of arrrays a(l_index)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 12:05:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array/m-p/3397247#M815750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T12:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: array</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array/m-p/3397248#M815751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no concept of array .. Instead use an Internal table to &lt;/P&gt;&lt;P&gt;populate the values and read them ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say your Internal table has a field F1 ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-f1 = 10.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear  itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-f1 = 20.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear  itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-f1 = 30.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear  itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now internal table has 3 values ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use loop ... endloop to get the values ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; itab-f1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 12:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array/m-p/3397248#M815751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T12:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: array</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array/m-p/3397249#M815752</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;There is no concept of array in abap .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is possible to store all the values in a single variable if it is declared of type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: var type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append 30 20 10 to var seperated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the variable will have the data seperated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 12:13:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array/m-p/3397249#M815752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T12:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: array</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array/m-p/3397250#M815753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;S IT IS POSSIBLE TO DECLARE THE ONE -DIMENSIONAL ARRAY IN ABAP BY USING INTERNAL TABLES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX.)&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT1 OCCURS 10,&lt;/P&gt;&lt;P&gt;           VAR1 TYPE I,&lt;/P&gt;&lt;P&gt;          END OF IT1.&lt;/P&gt;&lt;P&gt;IT1-VAR1 = 10.&lt;/P&gt;&lt;P&gt;APPEND IT1.&lt;/P&gt;&lt;P&gt;IT1-VAR1 = 20.&lt;/P&gt;&lt;P&gt;APPEND IT1.&lt;/P&gt;&lt;P&gt;IT1-VAR1 = 30.&lt;/P&gt;&lt;P&gt;APPEND IT1.&lt;/P&gt;&lt;P&gt;LOOP AT IT1.&lt;/P&gt;&lt;P&gt;WRITE:/ IT1-VAR1 COLOR 5.&lt;/P&gt;&lt;P&gt;END LOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 12:26:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array/m-p/3397250#M815753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T12:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: array</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/array/m-p/3397251#M815754</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;Santosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ABAP to hold one record we are using Work area where as &lt;/P&gt;&lt;P&gt;              to hold array of records we are using Internal Tables&lt;/P&gt;&lt;P&gt;Internal Table is nothing but temporary memory to hold the data while &lt;/P&gt;&lt;P&gt;uploading / downloading from DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward points if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hemasekhara Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 12:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/array/m-p/3397251#M815754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T12:51:19Z</dc:date>
    </item>
  </channel>
</rss>

