Type pool

what is the type pool used for placing a drop down list box on the module pool screen

<b>TYPE-POOL</b>
The introductory statement TYPE-POOL can only be used for type groups (type T programs). A program introduced with the TYPE-POOL statement can only contain global type definitions and constants declarations. The CLASS-POOL statement is generated automatically where required by the ABAP Dictionary - you should not insert it into programs manually.
<b>example  for ALV</b>
type-pools: slis.
data:
i_alv_fieldcat type slis_t_fieldcat_alv,
i_alv_sortcat type slis_t_sortinfo_alv,
i_alv_filtercat type slis_t_filter_alv,
i_alv_eventcat type slis_t_event,
i_alv_eventexitcat type slis_t_event_exit,
i_alv_spgroupcat type slis_t_sp_group_alv,
i_alv_excludingcat type slis_t_extab,
w_alv_selhide type slis_sel_hide_alv,
w_alv_isprint type slis_print_alv,
w_alv_keyinfo type slis_keyinfo_alv,
w_alv_layout type slis_layout_alv,
w_alv_variant type slis_layout_alv,
i_alv_list_top_of_page type slis_t_listheader,
w_alv_save(1) type c value 'A',
w_alv_default(1) type c value 'X',
w_alv_interface_check type c,
w_alv_sort_pos type i,
w_alv_screen_start_column type i,
w_alv_screen_start_line type i,
w_alv_screen_end_column type i,
w_alv_screen_end_line type i,
w_percentage_old type i value 1.
data: gt_events type slis_t_event,
ls_event type slis_alv_event,
g_repid type sy-repid,
w_callback_subroutine type slis_formname,
w_callback_program type sy-repid,
w_no_zero(1) value 'X',
w_alv_sortcat type slis_sortinfo_alv.
data: t_header type slis_t_listheader,
wa_header type slis_listheader,
t_line like wa_header-info.
reward points  if it is usefull ...
Girish

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

  • 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.

  • 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

  • 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

  • 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

  • How to create type pools

    Hi Experts,
    I have a query like can we create custom "type pools". if yes, then what are the steps to create it.
    Thank you in advance.
    Samad.

    hi..
    Pls check the f1 help in ur system.
    It gives u  simple examples. Anyway,
    Typepool falls under - Data types.
    Data Types
    You can define program-local data types in ABAP programs that can be used for typing or declaring additional data types and data objects according to validity and visibility.
    The corresponding statements are:
    1. TYPE-POOLS
    2.  TYPES
    3.  INCLUDE TYPE
    TYPE-POOLS
    Syntax
    TYPE-POOLS tpool.
    Effect
    Declaring global data types and constants from a type group.
    The TYPE-POOLS statement declares the data types and constants of type group tpool You can specify it in the global data declarations of an ABAP program or in the declaration section of a class or interface. The data types and constants of the type group are visible as of this statement in the current context.
    Notes
    If the declared type group tpool integrates a further type group with the TYPE-POOLS statement, its data types and constants are also declared.
    ,,Data types declared using type groups cover ABAP Dictionary data types of the same name.
    Example
    Declaration of the predefined type group abap. By referring to the table type abap_func_parmbind_tab from the type group abap, the system declares an internal table parameter_tab for the dynamic parameter transfer to function modules.
    TYPE-POOLS abap.
    DATA parameter_tab TYPE abap_func_parmbind_tab.
    regards,
    Padma
    Edited by: Padmashree RamMaghenthar on Oct 13, 2008 11:18 AM

  • Type-Pools in SE11 used on Class Parameter

    I have a strange one.  In 46C have parameter on a method of a class that uses a data type from a type pool.  Specific the parameter is a range type that is defined in the Type Pool.  In 46C this syntax checks fine.  But now we have upgraded our test system to 6.00 this no longer syntax checks.  It Syntax checks ok in SE24, but in SE11 it errors out.  In SE11 I get the error message The type "ZVMPL_TYRG_IDNFL" is unknown.  I am on Basis Stack 13.  Any insight on the problem would be appreciated. 
    Thanks.
    Matthew
    Here is the type pool
    TYPE-POOL zvmpl .
    TYPES:
      BEGIN OF zvmpl_tyst_lifnr_vmpl,
        lifnr TYPE lifnr,
        name1 TYPE name1_gp,
        name_short TYPE name1_gp,
        bahns TYPE bahns,
        obj_vmpl  TYPE REF TO zcl_masterpricelist,
      END OF zvmpl_tyst_lifnr_vmpl,
      zvmpl_tyit_lifnr_vmpl TYPE HASHED TABLE OF zvmpl_tyst_lifnr_vmpl
        WITH UNIQUE KEY lifnr,
      zvmpl_tyrg_idnlf TYPE RANGE OF idnlf.
    SE24 Definition of Class
    class ZCL_MASTERPRICELIST definition
      public
      create public .
    " public components of class ZCL_MASTERPRICELIST
    " do not include other source files here!!!
    public section.
      type-pools ZVMPL .
      methods PL_GET_ZVMPL_WHERE
        returning
          value(RE_RG_IDNLF) type ZVMPL_TYRG_IDNLF .

    everything seems to be fine for the type grp in se11. just goto the the change mode in se11 for the type group and click on "Display object list" (CTRLSHIFTF5). Then activate teh object name u find in the repo.browser
    Edited by: Prabhu  S on Mar 11, 2008 8:16 AM

  • Type-pools in class

    Hey guys,
    did someone of you recognized the strange behaviour of the ABAP workbench if you insert TYPE-POOLS in public section of the calss. If you than add a method to the class as PUBLIC, the TYPE-POOLS definition get lost. How could i use TYPE-POOLS within my class?
       thx,
          M.

    Hi,
    Use type-pools in the first line of class and also in public section.
    like.,
    class zcl_testclass definition.
    type-pools: <type_pool>.
    public-section.
    type-pools: <type_pool>.
    methods: method_name
    endclass.
    hope this helps u.,
    Thanks & Regards,
    Kiran

Maybe you are looking for

  • Schedule DO NOT DISTURB differently on certain days.

    I go to college and DO NOT DISTURB is a god send as I can schedule it to work during class time.  However, I do not attend class EVERY day and my schedule varies day to day. Is there a way (or a way in the works (HINT HINT APPLE)) of being able to sc

  • Possible to install on external USB 2.0 hard drive?

    Is it possible? I have leopard installed on my macbook pro, however i need tiger for final cut pro. I am going to buy an external HD, and want to know if i can install tiger onto it? to use.....for the time being for FCP (some plugins not compatible)

  • Numeric precision issue on OLEDB 11 R2 on Windows 2008 R2

    Hello, I am trying to use Linked Server From SQL Server 2008 SP 1 on Windows Server 2008 R2 64 bit to access an Oracle database (Oracle9i Enterprise Edition Release 9.2.0.5.0). I have installed client 11.2.0.1.0 R2 (win64_11gR2_client.zip) despite of

  • Creating hotkeys for special characters in textedit

    Hello, I'm trying to type my maths HW on my mac on textedit or word 2008. I'm trying to type the Z (integer symbol). Now I have found that in Special Characters in textedit but I cannot add a hot key to it for frequent use. In word 2008 I didn't find

  • Can i save my wet ipod touch ?

    Recently, my Ipod touch fell into the water so i have immediatly wiped it and connected to my computer. After that i have been able to turn it on. But i had an idea : put it in a bowl of rice. After some days it doesn't switch on anymore.