<?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: difference between type groups and work area in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-groups-and-work-area/m-p/2678210#M618885</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;Type group (type Pool) is Created in DDIC (se11) to Store a group of Data types and Constants.&lt;/P&gt;&lt;P&gt;To use these data types in a Program we must call the Type group like this.&lt;/P&gt;&lt;P&gt;TYPE-POOLS : SLIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as Workarea is a Variable based on a Structured data type. &lt;/P&gt;&lt;P&gt;It can store a single row of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: Data: WA_MARA type MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2007 11:45:46 GMT</pubDate>
    <dc:creator>varma_narayana</dc:creator>
    <dc:date>2007-08-28T11:45:46Z</dc:date>
    <item>
      <title>difference between type groups and work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-groups-and-work-area/m-p/2678207#M618882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guyz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wanna know diff between type groups and work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 11:19:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-groups-and-work-area/m-p/2678207#M618882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T11:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: difference between type groups and work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-groups-and-work-area/m-p/2678208#M618883</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 used to store one record at a time expicitly of an internal table.It will have the same structure as internal table&lt;/P&gt;&lt;P&gt;    If u are refering type group as like  &lt;/P&gt;&lt;P&gt;        types:begin of ty-abc,&lt;/P&gt;&lt;P&gt;                 name type field-name,&lt;/P&gt;&lt;P&gt;                 name2 type field-name2,&lt;/P&gt;&lt;P&gt;                 end of ty-abc.&lt;/P&gt;&lt;P&gt;    this declares a structure but does not hold memory space.For that u have to create a table of type ty-abc to hold all the records and then create a work area of type ty-abc to hold one record.&lt;/P&gt;&lt;P&gt;ie   &lt;/P&gt;&lt;P&gt;data:it_tab like ty-abc occurs 0 with header line,   " internal table&lt;/P&gt;&lt;P&gt;       wa_tab like line of ty-abc.  "work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 11:38:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-groups-and-work-area/m-p/2678208#M618883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T11:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: difference between type groups and work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-groups-and-work-area/m-p/2678209#M618884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Type Groups&lt;/P&gt;&lt;P&gt;Before Release 4.5A, it was not possible to define standalone types in the ABAP Dictionary to which you could refer using a TYPEaddition in an ABAP program. It was only possible to refer to flat structures. Structures in programs corresponded to the structures of database tables or structures in the ABAP Dictionary. In ABAP programs, you could only refer to database tables and structures in the ABAP Dictionary using LIKE. It was, however, possible to refer to individual components of the Dictionary type. Complex local data types such as internal tables or deep structures had no equivalent in the ABAP Dictionary. The solution to this from Release 3.0 onwards was to use type groups. Type groups were based on the include technique, and allowed you to store any type definitions globally in the Dictionary by defining them using TYPES statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The definition of a type group is a fragment of ABAP code which you enter in the ABAP Editor. The first statement for the type group pool is always:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE Groups is like we declare data using TYPES statement instead of LIKE word&lt;/P&gt;&lt;P&gt;types: begin of tygp, &lt;/P&gt;&lt;P&gt;no type kunnr,&lt;/P&gt;&lt;P&gt;name type name1,&lt;/P&gt;&lt;P&gt;amnt type netwr,&lt;/P&gt;&lt;P&gt;end of tygp.&lt;/P&gt;&lt;P&gt;workarea:&lt;/P&gt;&lt;P&gt;While adding or retrieving records to / from internal table we have to keep the record temporarily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The area where this record is kept is called as work area for the internal table. The area must have the same structure as that of internal table. An internal table consists of a body and an optional header line.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 10,&lt;/P&gt;&lt;P&gt;ab type c,&lt;/P&gt;&lt;P&gt;cd type i,&lt;/P&gt;&lt;P&gt;end of itab. " this table will have the header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_itab like itab. " explicit work area for itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab1 like itab occurs 10. " table is without header line.&lt;/P&gt;&lt;P&gt;reward points if it helps.&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 11:42:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-groups-and-work-area/m-p/2678209#M618884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T11:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: difference between type groups and work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-groups-and-work-area/m-p/2678210#M618885</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;Type group (type Pool) is Created in DDIC (se11) to Store a group of Data types and Constants.&lt;/P&gt;&lt;P&gt;To use these data types in a Program we must call the Type group like this.&lt;/P&gt;&lt;P&gt;TYPE-POOLS : SLIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as Workarea is a Variable based on a Structured data type. &lt;/P&gt;&lt;P&gt;It can store a single row of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: Data: WA_MARA type MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 11:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-groups-and-work-area/m-p/2678210#M618885</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-28T11:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: difference between type groups and work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-groups-and-work-area/m-p/2678211#M618886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why dont you just brows to sap.help.com ? all you want to know is there and WE are not a index search for that site.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 11:48:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-groups-and-work-area/m-p/2678211#M618886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T11:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: difference between type groups and work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-groups-and-work-area/m-p/2678212#M618887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WORK area means the place to keep/Store a Single record .&lt;/P&gt;&lt;P&gt;When you declare a table using &lt;/P&gt;&lt;P&gt;TABLES: MARA&lt;/P&gt;&lt;P&gt;this will create a work area for MARA to hold/store a single record of mara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type Groups&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before Release 4.5A, it was not possible to define standalone types in the ABAP Dictionary to which you could refer using a TYPE addition in an ABAP program. It was only possible to refer to flat structures. Structures in programs corresponded to the structures of database tables or structures in the ABAP Dictionary. In ABAP programs, you could only refer to database tables and structures in the ABAP Dictionary using LIKE. It was, however, possible to refer to individual components of the Dictionary type. Complex local data types such as internal tables or deep structures had no equivalent in the ABAP Dictionary. The solution to this from Release 3.0 onwards was to use type groups. Type groups were based on the include technique, and allowed you to store any type definitions globally in the Dictionary by defining them using TYPES statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The definition of a type group is a fragment of ABAP code which you enter in the ABAP Editor. The first statement for the type group &amp;lt;pool&amp;gt; is always:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOL &amp;lt;pool&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this came the definitions of data types using the TYPES statement, as described in Local Data Types in Programs. It was also possible to define global constants using the CONSTANTS statement. All the names of these data types and constants must begin with the name of the type group and an underscore:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an ABAP program, you must declare a type group as follows before you can use it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS &amp;lt;pool&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement allows you to use all the data types and constants defined in the type group &amp;lt;pool&amp;gt; in your program. You can use several type groups in the same program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example :&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;/P&gt;&lt;P&gt;Let the type group HKTST be created as follows in the ABAP Dictionary:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOL hktst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF hktst_typ1,&lt;/P&gt;&lt;P&gt;col1(10) TYPE c,&lt;/P&gt;&lt;P&gt;col2 TYPE i,&lt;/P&gt;&lt;P&gt;END OF hktst_typ1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES hktst_typ2 TYPE p DECIMALS 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS hktst_eleven TYPE i VALUE 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This type group defines two data types HKTST_TYP1 and HKTST_TYP2, as well as a constant HKTST_ELEVEN with the value 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ABAP program can use this definition with the TYPE-POOLS statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS hktst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: dat1 TYPE hktst_typ1,&lt;/P&gt;&lt;P&gt;dat2 TYPE hktst_typ2 VALUE '1.23'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: dat2, / hktst_eleven.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1,23&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11&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;/P&gt;&lt;P&gt;The data types defined in the type group are used to declare data objects with the DATA statement and the value of the constant is, as the output shows, known in the program. &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>Tue, 28 Aug 2007 11:57:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-groups-and-work-area/m-p/2678212#M618887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T11:57:12Z</dc:date>
    </item>
  </channel>
</rss>

