<?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/2057071#M424775</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;PRE&gt;&lt;CODE&gt;Loop at itab into wa.
  write:/ wa-fld1, wa_fld2.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2007 04:50:21 GMT</pubDate>
    <dc:creator>anversha_s</dc:creator>
    <dc:date>2007-03-12T04:50:21Z</dc:date>
    <item>
      <title>work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2057070#M424774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;      y use work area.??.cant v directly access database table directly..y do v require work area??where does it stores????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 04:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2057070#M424774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T04:47: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/2057071#M424775</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;PRE&gt;&lt;CODE&gt;Loop at itab into wa.
  write:/ wa-fld1, wa_fld2.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 04:50:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2057071#M424775</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2007-03-12T04:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2057072#M424776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kota,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above mentioned answer work area are helpful to you when you want to handle data in structured format. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insted of Accesing data with use of individual variable you can handle them in group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can move, copy and write data with help of work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will resolve your query...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now one request: If u are happy with ANSWERS then pleas reward POINTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DARSHAN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 07:02:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2057072#M424776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T07:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2057073#M424777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya we can use database tables directly but when we use select endselect it locks the db table and no other can use the table and the performance becomes slow,we also can have requirements l;ike deleting the table entries if we do it on db then the whole SAP will crash so its better to use internal tables,first we put data into internal tables then use as we like it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;explicit work areas are used because its fast in performance many client will not allow you to use itabs with headers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks reward points if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 13:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2057073#M424777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T13:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2057074#M424778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kota,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just have a look on this code to know the purpose of the work area,&lt;/P&gt;&lt;P&gt;here using somany work areas to transfer the data to the global work area for the output display, after the data calculations and Manipulations at different work area levels.&lt;/P&gt;&lt;P&gt;final append global work area to global itab for ouptut display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM move_globe .&lt;/P&gt;&lt;P&gt;  LOOP AT g_tab_ekko INTO g_wa_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE g_tab_ekpo INTO g_wa_ekpo WITH KEY ebeln = g_wa_ekko-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING: g_wa_ekpo TO g_wa_globe,&lt;/P&gt;&lt;P&gt;                                                g_wa_ekko TO g_wa_globe.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE g_tab_mbew INTO g_wa_mbew WITH KEY matnr = g_wa_ekpo-matnr&lt;/P&gt;&lt;P&gt;                                                                                bwkey = g_wa_ekpo-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      IF g_wa_mbew-vjbwh &amp;gt; 0.&lt;/P&gt;&lt;P&gt;        MOVE g_wa_mbew-vjbwh TO g_wa_globe-targe.&lt;/P&gt;&lt;P&gt;      ELSEIF g_wa_mbew-stprs &amp;gt; 0.&lt;/P&gt;&lt;P&gt;        MOVE g_wa_mbew-stprs TO g_wa_globe-targe.&lt;/P&gt;&lt;P&gt;      ELSEIF g_wa_mbew-verpr &amp;gt; 0.&lt;/P&gt;&lt;P&gt;        MOVE g_wa_mbew-verpr TO g_wa_globe-targe.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      g_wa_globe-pri_d = g_wa_mbew-verpr - g_wa_globe-targe.&lt;/P&gt;&lt;P&gt;      g_wa_globe-%_tar = ( ( g_wa_mbew-verpr / g_wa_globe-targe ) / g_wa_globe-targe ) * 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MOVE g_wa_mbew-peinh TO g_wa_globe-peinh.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    APPEND g_wa_globe TO g_tab_globe.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " move_globe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 05:08:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2057074#M424778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T05:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2057075#M424779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems you have got the answer...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I request you to reward points to people who have helped you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DARSHAN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 10:54:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-area/m-p/2057075#M424779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T10:54:55Z</dc:date>
    </item>
  </channel>
</rss>

