About type pools in ddic

i would like to about type pools pls let me why we use this and how to create these type pools and what is the advantage of using type pools
thanks in  advacnce
kiran

hi,
<i>This is taken directly from the HELP.</i>
<b>Type Groups</b>
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.
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:
<b>TYPE-POOL <pool>.</b>
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:
In an ABAP program, you must declare a type group as follows before you can use it:
TYPE-POOLS <pool>.
This statement allows you to use all the data types and constants defined in the type group <pool> in your program. You can use several type groups in the same program.
Let the type group HKTST be created as follows in the ABAP Dictionary:
TYPE-POOL hktst.
TYPES: BEGIN OF hktst_typ1,
col1(10) TYPE c,
col2 TYPE i,
END OF hktst_typ1.
TYPES hktst_typ2 TYPE p DECIMALS 2.
CONSTANTS hktst_eleven TYPE i VALUE 11.
This type group defines two data types HKTST_TYP1 and HKTST_TYP2, as well as a constant HKTST_ELEVEN with the value 11.
Any ABAP program can use this definition with the TYPE-POOLS statement:
TYPE-POOLS hktst.
DATA: dat1 TYPE hktst_typ1,
dat2 TYPE hktst_typ2 VALUE '1.23'.
WRITE: dat2, / hktst_eleven.
The output is:
1,23
11
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.
In short, type-pools or type groups are like little include programs where you store a bunch of TYPES statements. You can then use these types instead of defining them manually in your program. All you need to do is include the type-pool in your program.
report ZXYZ_0001.
Type-pools: slis.
Data: qinfo_alv type slis_qinfo_alv.
Regards,
Anver

Similar Messages

  • Where to set up a TYPE-POOL Declaration in a Function Group ?

    Hi,
    I ve got a Function Group.
    I set up a Function Module in the Function Group.
    I must use  TABLES I_T_SELECT TYPE SBIWA_T_SELECT.
    I get the error:
    Type pool SBIWA has not been declared
    Message no. FL031
    Diagnosis
    You used a type from type pool & in the interface of a function module.
    Procedure
    For the program to be syntactically correct, you must
    declare the type pool in the global data declaration of the
    function group using the 'TYPE-POOLS: &.' statement.
    Where / How do I set up a Type Pool in the global data declaration of the
    function group ?
    Where / what is the global data Declaration of the Function Group ?
    Thank You
    Best Wishes
    Martin

    Hello Martin,
    First off:
    TABLES I_T_SELECT TYPE SBIWA_T_SELECT.
    Correct me if I'm mistaken here, but tables is expecting a name of a DDIC structure. It is then creating a work area using that structure.
    If you have to declare an internal table, the correct code would be:
    DATA i_t_select TYPE TABLE OF sbiwa_t_select.
    Or:
    TABLES sbiwa_t_select.
    Regarding your questions:
    A global data declaration of a function group is just what it says, a point where you can declare your data usable for the whole function group.
    This is usually an Include.
    That said, you can fix your issue by creating an Include in your function group.
    Within that include you have to write:
    TYPE-POOLS: pool1, pool2, pool3.
    or, in case you only have one type pool:
    TYPE-POOLsbiwa
    After creating the include, you have to point your function module to that file.
    INCLUDE include_name.
    Kind regards,
    Michael

  • What type pool is used in ALV's

    Hi ,
           What type pool used in ALV's ? and How many secondary lists r possible in ALV's?
    Thanks & Regards,
    Gopi.

    SLIS
    i guess, no such limit,but not very sure about that.
    regards
    srikanth
    Message was edited by: Srikanth Kidambi

  • Diff. bet TYPE-POOL & TYPE-POOLS

    Hi,
    Could anyone please tell me the difference b/w TYPE-POOL & TYPE-POOLS statements with some examples

    Oh, I think I see what you are talking about.  In a report program write this.
    report zrich_0002.
    type-pools slis.
    Now double click on the SLIS.  This takes you to the type pool.  This first statement in the code is TYPE-POOL.   This is just how you define the start of the type pool.  Sort of like REPORT ZRICH_0002 or FUNCTION ztest.  When developing a type pool you will begin the code by saying TYPE-POOL ZTEST.  Then, to use the type pool in your program, you will say TYPE-POOLS ZTEST.
    Make sense?
    Welcome to SDN. Please reward points for helpful answers and mark your post as solved if answered completely. Thanks.
    Regards,
    Rich Heilman

  • Read Type-pools into internal table

    Hi all,
    I want the type-pools content to be put into the internal table and find the Lines of Code in it.
    Can anybody suggest how it is possible?
    Regards,
    K.Tharani.

    hi
    type pool will contain a list of related datas decalred in it ,
    and we can use those datas declared
    TYPE-POOLS abap.
      DATA: litab_catalog TYPE  abap_fieldcat_alv OCCURS 0,
              s_catalog TYPE  abap_fieldcat_alv.
      DATA: LITAB_EVENT   TYPE slis_t_event,
            S_EVENT   TYPE slis_alv_event.
    CATALOG Creation.
      s_catalog-col_pos   = 1.
      s_catalog-tabname   = 'GITAB_ERROR'.       "'T_ERROR'.
      s_catalog-fieldname = 'RECNO'.
      s_catalog-outputlen = 15.
      s_catalog-seltext_l  = 'Record Number'.
      s_catalog-ddictxt = 'L'.
      APPEND s_catalog TO litab_catalog.
    i think u can move ur type pools value into a Internal table,
    and then u can use
    describe table internal table  lines work area.

  • !!URGENT!! Type Pool DMUT not available in 45B

    Dears,
    Please can you suggest a solution for this. The type- pool/group DMUT does not exist in SAP version 45B. I want to use a FM ( coded in v5.0) which uses this type-pool.
    Is there any other type-pool/group which could be used as an alternative in older versions of SAP.

    If this is a standard function module, this may not exist in earleir version. Are you plannign to copy this from 5.0?
    In this case create the type pool along with the function module.

  • Table prmter E_T_DATA for extract missing & TYPE-POOL "RSAZT" is unknown

    Hi
    I have created generic extraction, the name of the FM is ZRSAX_BIW_GET_DATA_CRASS.
    I have set parameter table E_T_DATA like this in Tables tab
    E_T_DATA LIKE ZRPS_CRASS
    Then I set transaction data extraction using tcode RSO2 using FM ZRSAX_BIW_GET_DATA_CRASS and structure ZRPS_CRASS, name the datasource : Z_COPA_CRASS
    I have run rsa3 and get 563 data using this datasource (Z_COPA_CRASS) at the development system
    But why when I transport this into QA and Production, I get these following error on transport log:
    1 Table parameter E_T_DATA for extractor missing
    2 TYPE-POOL 'RSAZT' is unknown (check using tcode se38, program name : SAPLZRSAX, include : LZRSAXTOP)
    For no 1:
    Why this error happen?I have set E_T_DATA to extraction structure correctly...I think...
    For no 2:
    When i check my development system, this type pool exist but when i check in production system, the type pool doesn't exist.
    Anyone can solve my problem?Thank you.
    Regards,
    Satria

    Hi Satria,
                   Go to SE37 -> give the FM name (dont click on display/change) -> on the menu bar -> Click on Go To -> Function groups -> Change Groups -> Get the Function group name. -> Just edit the Function Group description so that the Function group get collected in the TR. Also in the same window go to MAin program -> just reactivate and collect them in the TR.
    The whole function group will be collected. Apart from these, also collect the Structure, Datasource and  import it again.
    This problem arised many times for me, i have re transported the function group and things used to work properly once the Trasnporting the Function group is successful
    Regards
    Sunil

  • ERROR in TYPE-POOLS cihal - Global definitions. Sentence not permitted...

    Hi guys,
    My ERROR is: "Global definitions. Sentence not permitted in context" in transaction SMARTFORMS.
    My code is:
    TYPE-POOLS cihal. " error here
    TYPES:
    typ_rcgstdrecn TYPE TABLE OF rcgstdrecn,
    typ_ccihs_ialhiot TYPE TABLE OF ccihs_ialhiot,
    typ_cihal_resltapi_tab_type TYPE TABLE OF cihal_resltapi_tab_type,
    typ_ccihs_ihvaliot TYPE TABLE OF ccihs_ihvaliot,
    typ_ccihs_ipiot TYPE TABLE OF ccihs_ipiot,
    typ_ccihs_ipevaiot TYPE TABLE OF ccihs_ipevaiot,
    typ_ccihs_ipevinjiot TYPE TABLE OF ccihs_ipevinjiot,
    typ_cih01_ihprapi_tab_type TYPE TABLE OF ccihs_prapi,
    typ_ccihs_ipabsiot TYPE TABLE OF ccihs_ipabsiot,
    typ_ccihs_iprestriot TYPE TABLE OF ccihs_iprestriot,
    type_ccihs_ipevinjiot TYPE TABLE OF ccihs_ipevinjiot,
    typ_tline TYPE TABLE OF tline.
    TYPES: BEGIN OF typ_datos_acc,
            nachn TYPE pad_nachn,
            name2 TYPE pad_name2,
            vorna TYPE pad_vorna,
            years TYPE i,
            werks TYPE persa,
            berkt TYPE berkt,
      END OF typ_datos_acc.
    " end code
    This code is in the tab "types" belonging to the definitions of global smartform.
    Anybody can help me with this error?
    Where can include the "TYPE-POOLS cihal." in my smartform without giving me this error?
    Thanks for your help.

    Hi Anup Verma,
    What you say is correct, to include the TYPE-POOLS in the initialization tab.
    What was happening is that the Line:
    typ_cihal_resltapi_tab_type TYPE OF TABLE cihal_resltapi_tab_type,
    declared in the types tab was obsolete and I had to comment to activate correctly.
    Thank you very much for your help.

  • What is TYPE GROUP /TYPE-POOL?  When to use that ?

    hello friends
    Can any one tell me
    What is TYPE GROUP /TYPE-POOL?  When to use that ?
    Thanks & Best Regards
    Nilesh

    Type group
    If you want to define global constants, you have to use a type group. The name of
    the type group can only contain a maximum of five characters. In the type group,
    you can define constants using the CONSTANTS statement. As types, you are
    provided with the integrated ABAP types or the global types of the Dictionary.
    In order to be able to use the types of a type group in a program, make the type
    group known using the TYPE POOL statement. From these lines on, you can use
    all constants of the type group.
    The definition of a type group is a piece of ABAP code that is either maintained
    via the Dictionary (SE11) or via the ABAP Editor (SE38).
    Realization:
    The first statement for the type group zmytp is always:
    TYPE-POOL zmytp.This is followed by the definition of data types with the statement TYPES, as
    described under local program data types. Furthermore, cross-program constants
    can be declared using the CONSTANTS statement. All names of this data type
    and constants must begin with the name of the type group and an underline:
    zmytp_
    In an ABAP program, type groups must be made known with the following
    statements before they are used:
    TYPE-POOLS zmytp.
    When using this statement, all data types ansd constants, which are defined in the
    zmytp type group can be used in the program. Several type groups can be used
    in a program.

  • How to create and add table type to a DDIC Structure in sap 3.1H

    How to create and add table type to a DDIC Structure in sap 3.1H

    How to create and add table type to a DDIC Structure in sap 3.1H

  • WHY TYPE-POOLS

    hi all,
    i wana know that why we use type-pools when we have data dictionary
    and what i study accord to that type pool and data dictionary are same
    please help with the same.
    thanks in advance
    anuj

    Hi anuj,
    it is only "old" stuff.
    Type Groups
    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.
    Regards
    Bernd

  • THE TYPE-POOL "FIBS" IS UNKNOWN

    whenever declare and execute the this type-pool in alv program , i got this syntax  error     [ THE TYPE-POOL "FIBS" IS UNKNOWN   ]  and also i am using *abap trial  version software7.0*

    in abap trial there is no standard content (nothing like MM, HR etc.). Maybe this module pool is not avaiable in trial as well, because it is a part of some business content. Otto

  • Create TYPE-POOlS

    how to create our own Type-pools?for using alv?

    hi,
    This is taken directly from the HELP.
    Type Groups
    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.
    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:
    TYPE-POOL <pool>.
    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:
    In an ABAP program, you must declare a type group as follows before you can use it:
    TYPE-POOLS <pool>.
    This statement allows you to use all the data types and constants defined in the type group <pool> in your program. You can use several type groups in the same program.
    Let the type group HKTST be created as follows in the ABAP Dictionary:
    TYPE-POOL hktst.
    TYPES: BEGIN OF hktst_typ1,
    col1(10) TYPE c,
    col2 TYPE i,
    END OF hktst_typ1.
    TYPES hktst_typ2 TYPE p DECIMALS 2.
    CONSTANTS hktst_eleven TYPE i VALUE 11.
    This type group defines two data types HKTST_TYP1 and HKTST_TYP2, as well as a constant HKTST_ELEVEN with the value 11.
    Any ABAP program can use this definition with the TYPE-POOLS statement:
    TYPE-POOLS hktst.
    DATA: dat1 TYPE hktst_typ1,
    dat2 TYPE hktst_typ2 VALUE '1.23'.
    WRITE: dat2, / hktst_eleven.
    The output is:
    1,23
    11
    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.
    ~~Guduri

  • Type Pools

    Hi All,
         What is meant By Type pools and Class pools. It contains Types like SLIS,    VRM. What is the use of it.
      Thanks in Advance

    Vijay ,
      Pls. go through this.
    10.     What is a table pool?
    A table pool (or pool) is used to combine several logical tables in the ABAP/4 Dictionary.  The definition of a pool consists of at least two key fields and a long argument field (VARDATA).
    11.     What are pooled tables?
    These are logical tables, which must be assigned to a table pool when they are defined.  Pooled tables can be used to store control data (such as screen sequences or program parameters).
    Pls. mark if useful
    12.     What is a table cluster?
    A table cluster combines several logical tables in the ABAP/4 Dictionary.  Several logical rows from different cluster tables are brought together in a single physical record.  The records from the cluster tables assigned to a cluster are thus stored in a single common table in the database.

  • Type pool: slis

    Hi experts
       pls could you explain what is TYPE-POOLS: SLIS clearly in ALV program. i want to know what is the basic structure of slis and what is type pool. thax heaps.......
    points awarded...
    kondal

    SLIS is a type pool or group and is nothing more than a collection of TYPE statements.  When you use the TYPE-POOLS: statement in your program, and name the type group SLIS, this gives you access to these TYPES so that you can use them in your DATA statements.  For example, if you want to declare an internal table for the field catalog.....
    type-pools: slis.
    data: ifldcat type slis_t_fieldcat_alv.
    Regards,
    RIch Heilman

Maybe you are looking for

  • Perplexing problem with iMac suddenly not recognising iWire access

    I have a 24" iMac which has been running the most uptodate OSX Leopard software (I also have a PowerBook running the same, which is relevant). Two days ago, my iWire connection to my broadband suddenly stopped. That is, when I opened up my iMac and i

  • Problems html5 output smart interaction in Captivte 8

    Hi community, I have a problem with Captivate 8 When I publish smart interaction like Word Search they run perfect in swf. But when I watch the html5 output most of the interactions are placed on the top left corner and not at the position where I wa

  • Possible WiFi dropout solution

    Check the setting in your modem/router called GROUP KEY UPDATE INTERVAL. It generally defaults to 3600 secs (1 hour). Found this page. http://forums.whirlpool.net.au/archive/1089217 Set my key to 0 and now been stable for over 6 hours.

  • Running two versions of iLife and keeping iMovie 6

    Actually two questions. Is it possible to keep iLife 08 and also install Life 09 in the same computer. And MOST importantly if I install the iLife09 package will I loose iMovie 06 which I have used so much and have so much material I am working on?

  • Javac trouble

    I have searched the forums and have found others with my problem but the solutions are not helping me with my problem. I am new to Java and am trying to use "Learning Java 3rd Edition" by Patrick Niemeyer & Jonathan Knudsen. The book recomends we lea