<?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 &amp; work area in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-work-area/m-p/3243132#M774059</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;Workarea is like structure and at a time, it can handle only one record whereas internal table can hold many records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In previous releases, workarea was not used explicitly whereas now that way of coding is obsolete and workarea should be explicitly defined now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kamalapriya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jan 2008 08:22:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-17T08:22:57Z</dc:date>
    <item>
      <title>internal table &amp; work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-work-area/m-p/3243129#M774056</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;              What is the purpose of defining work area,&lt;/P&gt;&lt;P&gt;why we are using the work area and internal table in the same program,Please explain me with simple example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 08:14:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-work-area/m-p/3243129#M774056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T08:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: internal table &amp; work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-work-area/m-p/3243130#M774057</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;work area holds single record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;internal table holds group of records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 08:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-work-area/m-p/3243130#M774057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T08:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: internal table &amp; work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-work-area/m-p/3243131#M774058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;An internal table is a temporary table stored in RAM on the application server. It is created and filled by a program during execution and is discarded when the program ends. Like a database table, an internal table consists of one or more rows with an identical structure, but unlike a database table, it cannot hold data after the program ends. Use it as temporary storage for manipulating data or as a temporary private buffer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definition of an Internal Table&lt;/P&gt;&lt;P&gt;An internal table consists of a body and an optional header line(work area)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The body holds the rows of the internal table. All rows within it have the same structure. The term "internal table" itself usually refers to the body of the internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  The header line is a field string with the same structure as a row of the body, but it can only hold a single row. It is a buffer used to hold each record before it is added or each record as it is retrieved from the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 08:21:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-work-area/m-p/3243131#M774058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T08:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: internal table &amp; work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-work-area/m-p/3243132#M774059</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;Workarea is like structure and at a time, it can handle only one record whereas internal table can hold many records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In previous releases, workarea was not used explicitly whereas now that way of coding is obsolete and workarea should be explicitly defined now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kamalapriya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 08:22:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-work-area/m-p/3243132#M774059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T08:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: internal table &amp; work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-work-area/m-p/3243133#M774060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;example of declaring internal table without header line and with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:t_flight TYPE STANDARD TABLE OF ty_flight WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:t_flight TYPE STANDARD TABLE OF ty_flight,&lt;/P&gt;&lt;P&gt;         wa_flight TYPE ty_flight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; itab does not have work area it means workarea has same name of itab no explicit work area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 08:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-work-area/m-p/3243133#M774060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T08:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: internal table &amp; work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-work-area/m-p/3243134#M774061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Difference between Internal Tables and Work Areas&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;INTERNAL TABLES&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;	- Internal tables are used to obtain data from a fixed structure for &lt;/P&gt;&lt;P&gt;	  dynamic use in ABAP. &lt;/P&gt;&lt;P&gt;	- Each line in the internal table has the same field structure.&lt;/P&gt;&lt;P&gt;	- The main use for internal tables is for storing and formatting data from&lt;/P&gt;&lt;P&gt;	  a database table within a program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WORK AREAS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;	- Work areas are single rows of data.&lt;/P&gt;&lt;P&gt;	- It should have the same format as any of the internal tables. &lt;/P&gt;&lt;P&gt;	- It is used to process the data in an internal table one line at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Internal Tables with Header Line&lt;/STRONG&gt; : Here the system automatically creates the work area. The work area has the same data type as internal table. This work area is called the HEADER line. It is here that all the changes or any of the action on the contents of the table are done. As a result of this, records can be directly inserted into the table or accessed from the internal table directly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Internal Tables without Header Line&lt;/STRONG&gt; : Here there is no work area associated with the table. Work area is to be explicitly specified when we need to access such tables. Hence these tables cannot be accessed directly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HEADER LINE----&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CREATED EXPLICITLY------&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1.Internal table created by referring to another table&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax:	Data &amp;lt;f&amp;gt; &amp;lt;type&amp;gt; [with header line].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;type&amp;gt;  refers to a table data type or table data objects using type or like.&lt;/P&gt;&lt;P&gt;Here internal table &amp;lt;f&amp;gt; is created of the type &amp;lt;type&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;DATA t_line TYPE line OCCURS 10 with header line.&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;EM&gt;2. Internal table created by referring to existing structure&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax:     Data&amp;lt;f&amp;gt; &amp;lt;type&amp;gt; occurs n [with header line].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lines of the internal table &amp;lt;f&amp;gt; have the data type specified in &amp;lt;type&amp;gt; (Can use either like or type).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;   DATA flight_tab LIKE sflight OCCURS 10.&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CREATED BY DEFAULT---&lt;/EM&gt;	&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;EM&gt;3. Internal table created  With a new structure&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;  Syntax:	   Data : Begin of &amp;lt;f&amp;gt; occurs &amp;lt;n&amp;gt;,&lt;/P&gt;&lt;P&gt;		&amp;lt;component declaration&amp;gt;,&lt;/P&gt;&lt;P&gt;		&amp;#133;&amp;#133;&amp;#133;&amp;#133;&amp;#133;&amp;#133;&amp;#133;&amp;#133;&amp;#133;&amp;#133;&amp;#133;,&lt;/P&gt;&lt;P&gt;		End of &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Work area is created by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Data : Begin of itab occurs 10,&lt;/P&gt;&lt;P&gt;	column1       type I,&lt;/P&gt;&lt;P&gt;                column2(4)  type C,&lt;/P&gt;&lt;P&gt;               	column3      like  mara-ernam,&lt;/P&gt;&lt;P&gt;        End of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;reward if useful&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;P&gt;suma sailaja pvn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 08:43:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-work-area/m-p/3243134#M774061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T08:43:18Z</dc:date>
    </item>
  </channel>
</rss>

