<?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: Work Area in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350591#M518856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Work area is Structure where as Internal table is a collection of such structure with no size limit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you want to copy one row at a time from an internal table you have to use the structure like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: struc type spfli,&lt;/P&gt;&lt;P&gt;           itab type table of spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab into struc.&lt;/P&gt;&lt;P&gt;*FOr each loop pass one row's data  will be copied on to the workarea.&lt;/P&gt;&lt;P&gt;So with in the loop you can use the data or change the data and push the data back using MODIFY satement.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If your internal table is declared using WITH HEADERLINE addition then &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;itab is used as workarea and itab[] is used as the collection.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jun 2007 04:33:06 GMT</pubDate>
    <dc:creator>seshatalpasai_madala</dc:creator>
    <dc:date>2007-06-07T04:33:06Z</dc:date>
    <item>
      <title>Work Area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350586#M518851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do we use work area. When we have Itab to use. Please give any code example where I can see the proper use of work area.&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>Thu, 07 Jun 2007 04:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350586#M518851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T04:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Work Area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350587#M518852</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 a structure that can hold only one record at a time. It is a collection of fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use workarea as we cannot directly read from a table. In order to interact with a table we need workarea. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a Select Statement is executed on a table then the first record is read and put into the header of the table and from there put into the header or the workarea(of the same structure as that of the table)of the internal table and then transferred top the body of the internal table or directly displayed from the workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The work area is the temporary space in SAP memory that you are working as an ABAPer and is for the duration that your program is running, you also define that area and space as you define internal tables etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each row in a table is a record and each column is a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A work area is nothing more than a variable in your program which usually has some strucure. This work area holds data at runtime. A lot of times a work area is used to read lines of an internal table into.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab into wa.&lt;/P&gt;&lt;P&gt;  write:/ wa-fld1, wa_fld2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;'Anversha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 04:21:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350587#M518852</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2007-06-07T04:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Work Area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350588#M518853</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(WA) is used when we declare internal table without header line...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in OO context, internal table with header line is deprecated, hence we use WA which is like line of table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get values into WA and append it to ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Example..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : itab type standard table of MARA,
	wa like line of itab.

wa-matnr = '000223'.
wa-ERSDA = '01122006'.
wa-AENAM = 'XYZ'.
...
append wa to itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES : begin of wat,
	matnr type MATNR,
	ersda type ERSDA,
	ERNAM type ERNAM,
	end of wat.

data : itab type standard table of wat,
	wa like line of itab.

wa-matnr = '000223'.
wa-ERSDA = '01122006'.
wa-AENAM = 'XYZ'.

append wa to itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;Do reward each useful answer..!&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tatvagna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Tatvagna Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 04:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350588#M518853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T04:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Work Area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350589#M518854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;data: begin of t_type.&lt;/P&gt;&lt;P&gt;kunnr2 type bkpf-mandt,&lt;/P&gt;&lt;P&gt;kunnr type bkpf-mandt,&lt;/P&gt;&lt;P&gt;DATA: END OF t_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:i_table type standard TABLE OF t_type,&lt;/P&gt;&lt;P&gt;     wa_table type t_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_table-kunnr  = '01'.&lt;/P&gt;&lt;P&gt;wa_table-kunnr2 = '06'.&lt;/P&gt;&lt;P&gt;APPEND wa_table to i_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_table-kunnr  = '06'.&lt;/P&gt;&lt;P&gt;wa_table-kunnr2 = '09'.&lt;/P&gt;&lt;P&gt;APPEND wa_table to i_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_table into wa_table.&lt;/P&gt;&lt;P&gt;WRITE:/ wa_table-kunnr2 , wa_table-kunnr.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sooness&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 04:27:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350589#M518854</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2007-06-07T04:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Work Area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350590#M518855</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 is like a structure which contain one record at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you define an internal table the system arranges a part of memory area in two parts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The first one is to stores all records loaded in the table;&lt;/P&gt;&lt;P&gt;- The second one is to store the single record is elaborated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you loop an internal table, the system picks up the record from the first area and puts it to the second one; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The part of memory to store all records is obligatory, so the system'll always create it when an internal table is defined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The part of memory to store the single record is not necessary, you have to use it only if it needs to read the table: this one is called HEADER LINE or WORK AREA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can decide to declare a table with or without an header line in according to what you need to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A) If you need to read the table you need to have a table with header line or work area:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- WITH HEADER LINE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;              FIELD1,&lt;/P&gt;&lt;P&gt;              FIELD2,&lt;/P&gt;&lt;P&gt;              FIELD3,&lt;/P&gt;&lt;P&gt;           END    OF ITAB.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;  WRITE ITAB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While looping the table the system automatically fills the header line;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- WITH WORK AREA:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF WA_ITAB,&lt;/P&gt;&lt;P&gt;              FIELD1,&lt;/P&gt;&lt;P&gt;              FIELD2,&lt;/P&gt;&lt;P&gt;              FIELD3,&lt;/P&gt;&lt;P&gt;           END    OF WA_ITAB.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: ITAB LIKE STANDARD TABLE OF WA_ITAB.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT ITAB INTO WA_ITAB.&lt;/P&gt;&lt;P&gt;  WRITE WA_ITAB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While looping the table the system automatically fills the work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it can say the header line is a work area the system automatically creates by internal table defination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's the same to use the header line or work area, because you need them when you have to read the records of an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A) If you don't need to read the table, you can define a table without 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;SELECT-OPTIONS: SO_ERDAT FOR SY-DATUM.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: IT_MATERIAL LIKE MARA-MATNR OCCURS 0.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: IT_MARC LIKE STANDARD TABLE OF MARC WITH HEADER LINE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT MATNR FROM MARA INTO TABLE IT_MATERIAL WHERE ERDAT IN SO_ERDAT.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  SELECT * FROM MARC&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN IT_MATERIAL WHERE MATNR = IT_MATERIAL.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT IT_MARC.&lt;/P&gt;&lt;P&gt;  WRITE IT_MARC.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example the internal table IT_MATERIAL is used only to select the data from MARC using the option FOR ALL ENTRIES. This options doesn't use the header line of the table, so it's useless to define a table with an heaader line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For More Info,&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb36a1358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb36a1358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 04:28:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350590#M518855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T04:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Work Area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350591#M518856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Work area is Structure where as Internal table is a collection of such structure with no size limit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you want to copy one row at a time from an internal table you have to use the structure like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: struc type spfli,&lt;/P&gt;&lt;P&gt;           itab type table of spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab into struc.&lt;/P&gt;&lt;P&gt;*FOr each loop pass one row's data  will be copied on to the workarea.&lt;/P&gt;&lt;P&gt;So with in the loop you can use the data or change the data and push the data back using MODIFY satement.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If your internal table is declared using WITH HEADERLINE addition then &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;itab is used as workarea and itab[] is used as the collection.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 04:33:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350591#M518856</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-06-07T04:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Work Area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350592#M518857</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 your issue is resolved, Please Reply/Reward/Close this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tatvagna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 04:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350592#M518857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T04:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Work Area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350593#M518858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;P&gt;My question is been answeres by sdn guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards....&lt;/P&gt;&lt;P&gt;Abhay Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 04:41:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350593#M518858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T04:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Work Area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350594#M518859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abhay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;work areas are useful in situations where nesting of internal tables are used.&lt;/P&gt;&lt;P&gt;for nesting of internal tables then that tables must be with out header lines. for such reasons we for work areas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in general situations also internal tables with out header lines are used then we have to create a workarea which is similar to inetrnal table n use it.&lt;/P&gt;&lt;P&gt;any operation which we perform on internal tables is done through workarea or header line only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of t_type.&lt;/P&gt;&lt;P&gt;kunnr2 type bkpf-mandt,&lt;/P&gt;&lt;P&gt;kunnr type bkpf-mandt,&lt;/P&gt;&lt;P&gt;DATA: END OF t_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:i_table type standard TABLE OF t_type,&lt;/P&gt;&lt;P&gt;wa_table type t_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_table-kunnr = '01'.&lt;/P&gt;&lt;P&gt;wa_table-kunnr2 = '06'.&lt;/P&gt;&lt;P&gt;APPEND wa_table to i_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_table-kunnr = '06'.&lt;/P&gt;&lt;P&gt;wa_table-kunnr2 = '09'.&lt;/P&gt;&lt;P&gt;APPEND wa_table to i_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_table into wa_table.&lt;/P&gt;&lt;P&gt;WRITE:/ wa_table-kunnr2 , wa_table-kunnr.&lt;/P&gt;&lt;P&gt;ENDLOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if useful reward soem points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 04:50:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350594#M518859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T04:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Work Area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350595#M518860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we can declare internal table  in two ways &lt;/P&gt;&lt;P&gt;1. with header line&lt;/P&gt;&lt;P&gt;2. with out headerline&lt;/P&gt;&lt;P&gt; so when ever we read data fron internal table we need to move data to header line and then read it. we cannot directly read form internal table.&lt;/P&gt;&lt;P&gt;so for table without header line inorder to read data we create workarea of the same structure as the internal table. then we move the data to workarea and read from it. &lt;/P&gt;&lt;P&gt; internal table withe headerline eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of  itab_rec,&lt;/P&gt;&lt;P&gt;           name(10)  type c,&lt;/P&gt;&lt;P&gt;           number type i,&lt;/P&gt;&lt;P&gt;            end of itab_rec.&lt;/P&gt;&lt;P&gt; data:  itab type standard table of itab_rec with headerline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; or it can be declared as follow&lt;/P&gt;&lt;P&gt;data: itab type itab_rec occurs 0 with headerline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when reading data from internal table with headerline it will be as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write: itab-name,&lt;/P&gt;&lt;P&gt;         itab-no.&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when using internal table without headerline we use workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of  itab_rec,&lt;/P&gt;&lt;P&gt;           name type c,&lt;/P&gt;&lt;P&gt;           number type i,&lt;/P&gt;&lt;P&gt;            end of itab_rec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type standard table of itab_rec.&lt;/P&gt;&lt;P&gt;       wa_ itab type itab_rec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here wa_itab is the work area. so when reading data it will be as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa_itab.&lt;/P&gt;&lt;P&gt;write: wa_itab-name,&lt;/P&gt;&lt;P&gt;         wa_itab-no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 04:52:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350595#M518860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T04:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Work Area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350596#M518861</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;   We can process internal table data through it's workarea only, we r not processing data directly from it's body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we r creating internal table with header line, in this case no need to create workarea because internal table created with implicity workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in  few areas we must create internal table with out header line( abap objects not supported internal table with headerline).  in such situation we create workarea to process internal table data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WORK AREA must have the same structure of INTERNAL TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;*declaration.&amp;lt;/u&amp;gt; &lt;/P&gt;&lt;P&gt;data: begin of inernaltable occurs 0, &lt;/P&gt;&lt;P&gt;         x type c, &lt;/P&gt;&lt;P&gt;         y type i, &lt;/P&gt;&lt;P&gt;      end of itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;*initializing headerline&amp;lt;/u&amp;gt; &lt;/P&gt;&lt;P&gt;   internaltable-x = 'd'. &lt;/P&gt;&lt;P&gt;   internaltable-y = 34. &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;*storing value into internal table&amp;lt;/u&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append internaltable .  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;*reading internal table&amp;lt;/u&amp;gt; &lt;/P&gt;&lt;P&gt;loop at itab . &lt;/P&gt;&lt;P&gt;   write: / internaltable-x, internaltable-y.  "writes to output list &lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for brief details follow these links.&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.mis.cmich.edu/sap-abap/abap04/sld013.htm" target="test_blank"&gt;http://sap.mis.cmich.edu/sap-abap/abap04/sld013.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/TUTORIALS/TECHNICAL/internaltables_tutorial.html" target="test_blank"&gt;http://www.sapbrain.com/TUTORIALS/TECHNICAL/internaltables_tutorial.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sudheer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 04:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2350596#M518861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T04:52:49Z</dc:date>
    </item>
  </channel>
</rss>

