<?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: internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/861814#M48203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal types are just like table which you see in Microsoft Word with heading for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Empno  ename   job       salary   deptno&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;  -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;      -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;1      SMITH   MANAGER    2000      10&lt;/P&gt;&lt;P&gt;2      WARD    ANALYST    3000      20&lt;/P&gt;&lt;P&gt;3      ALLEN   CLERK      1500      10&lt;/P&gt;&lt;P&gt;4      ZEESHAN PRESIDENT  5000      30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can get data from tables and put it in internal table for future use. at run time the data i fetch from database into internal tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that you get the data from internal table line by line and process it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are three table kinds: &lt;/P&gt;&lt;P&gt;-   standard tables, &lt;/P&gt;&lt;P&gt;-   sorted tables &lt;/P&gt;&lt;P&gt;-   hashed tables&lt;/P&gt;&lt;P&gt;most of the time standard tables are used.&lt;/P&gt;&lt;P&gt;if you want to declare an internal table based on a database table the syntex would be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab_scarr type standard table of scarr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here itab_scarr is an internal table and has the same columns which scarr table has.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i will give you an example of internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab_scarr TYPE STANDARD TABLE OF scarr.&lt;/P&gt;&lt;P&gt;DATA wa_scarr TYPE scarr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM scarr&lt;/P&gt;&lt;P&gt;INTO TABLE itab_scarr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab_scarr INTO wa_scarr.&lt;/P&gt;&lt;P&gt;  WRITE: / wa_scarr.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;second example&lt;/P&gt;&lt;P&gt;you can also define an internal table on the base of you own type for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF template,&lt;/P&gt;&lt;P&gt;a TYPE c,&lt;/P&gt;&lt;P&gt;b TYPE c,&lt;/P&gt;&lt;P&gt;c1 TYPE c,&lt;/P&gt;&lt;P&gt;END OF template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab_template TYPE STANDARD TABLE OF template.&lt;/P&gt;&lt;P&gt;DATA wa_template TYPE template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_template-a = 'A'.&lt;/P&gt;&lt;P&gt;wa_template-b = 'B'.&lt;/P&gt;&lt;P&gt;wa_template-c1 = 'C'.&lt;/P&gt;&lt;P&gt;APPEND wa_template TO itab_template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_template-a = 'C'.&lt;/P&gt;&lt;P&gt;wa_template-b = 'E'.&lt;/P&gt;&lt;P&gt;wa_template-c1 = 'F'.&lt;/P&gt;&lt;P&gt;APPEND wa_template TO itab_template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_template-a = 'G'.&lt;/P&gt;&lt;P&gt;wa_template-b = 'H'.&lt;/P&gt;&lt;P&gt;wa_template-c1 = 'I'.&lt;/P&gt;&lt;P&gt;APPEND wa_template TO itab_template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab_template INTO wa_template.&lt;/P&gt;&lt;P&gt;  WRITE: / wa_template.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here you find another type that is wa_template that only hold one line at a time you store the value into wa_template then append (insert at the end) it to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to know the operations on internal table replay be back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2005 06:22:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-06-16T06:22:45Z</dc:date>
    <item>
      <title>internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/861811#M48200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;this is amit from gurgaon. i m a new enterant to this wide world of SAP field. i want to know abot internal table. &lt;/P&gt;&lt;P&gt;i expect awarm response from u expert guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2005 05:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/861811#M48200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-16T05:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/861812#M48201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SAP and to SDN. Hope you find it irresistably interesting!!:-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the link which tells you all you need to know about internal tables - &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;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2005 05:54:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/861812#M48201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-16T05:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/861813#M48202</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;Check these links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="459600"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/tips/tipshome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/tips/tipshome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/example_code.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/example_code.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2005 05:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/861813#M48202</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-06-16T05:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/861814#M48203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal types are just like table which you see in Microsoft Word with heading for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Empno  ename   job       salary   deptno&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;  -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;      -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;1      SMITH   MANAGER    2000      10&lt;/P&gt;&lt;P&gt;2      WARD    ANALYST    3000      20&lt;/P&gt;&lt;P&gt;3      ALLEN   CLERK      1500      10&lt;/P&gt;&lt;P&gt;4      ZEESHAN PRESIDENT  5000      30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can get data from tables and put it in internal table for future use. at run time the data i fetch from database into internal tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that you get the data from internal table line by line and process it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are three table kinds: &lt;/P&gt;&lt;P&gt;-   standard tables, &lt;/P&gt;&lt;P&gt;-   sorted tables &lt;/P&gt;&lt;P&gt;-   hashed tables&lt;/P&gt;&lt;P&gt;most of the time standard tables are used.&lt;/P&gt;&lt;P&gt;if you want to declare an internal table based on a database table the syntex would be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab_scarr type standard table of scarr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here itab_scarr is an internal table and has the same columns which scarr table has.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i will give you an example of internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab_scarr TYPE STANDARD TABLE OF scarr.&lt;/P&gt;&lt;P&gt;DATA wa_scarr TYPE scarr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM scarr&lt;/P&gt;&lt;P&gt;INTO TABLE itab_scarr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab_scarr INTO wa_scarr.&lt;/P&gt;&lt;P&gt;  WRITE: / wa_scarr.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;second example&lt;/P&gt;&lt;P&gt;you can also define an internal table on the base of you own type for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF template,&lt;/P&gt;&lt;P&gt;a TYPE c,&lt;/P&gt;&lt;P&gt;b TYPE c,&lt;/P&gt;&lt;P&gt;c1 TYPE c,&lt;/P&gt;&lt;P&gt;END OF template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab_template TYPE STANDARD TABLE OF template.&lt;/P&gt;&lt;P&gt;DATA wa_template TYPE template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_template-a = 'A'.&lt;/P&gt;&lt;P&gt;wa_template-b = 'B'.&lt;/P&gt;&lt;P&gt;wa_template-c1 = 'C'.&lt;/P&gt;&lt;P&gt;APPEND wa_template TO itab_template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_template-a = 'C'.&lt;/P&gt;&lt;P&gt;wa_template-b = 'E'.&lt;/P&gt;&lt;P&gt;wa_template-c1 = 'F'.&lt;/P&gt;&lt;P&gt;APPEND wa_template TO itab_template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_template-a = 'G'.&lt;/P&gt;&lt;P&gt;wa_template-b = 'H'.&lt;/P&gt;&lt;P&gt;wa_template-c1 = 'I'.&lt;/P&gt;&lt;P&gt;APPEND wa_template TO itab_template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab_template INTO wa_template.&lt;/P&gt;&lt;P&gt;  WRITE: / wa_template.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here you find another type that is wa_template that only hold one line at a time you store the value into wa_template then append (insert at the end) it to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to know the operations on internal table replay be back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2005 06:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/861814#M48203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-16T06:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/861815#M48204</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 u want to learn with sample programs u can goto &amp;lt;b&amp;gt;/oABAPDOCU&amp;lt;/b&amp;gt; and u will get lots of sample codes, u can aslo execute and check with the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="459537"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward and close the thread if u have got sufficient info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Judith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2005 08:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/861815#M48204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-16T08:20:14Z</dc:date>
    </item>
  </channel>
</rss>

