‎2007 May 04 8:10 AM
hi can u please tell me what is a type pools? like i came across one called
TYPE-POOLS: SLIS
‎2007 May 04 8:12 AM
Hi
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.
Reward points if useful
Regards
Anji
‎2007 May 04 8:13 AM
TYPE-POOLS
Syntax
TYPE-POOLS tpool.
Effect
In order to use the definitions of a type group, you have to integrate the type group into the program.
The TYPE-POOLS statement integrates the type group tpool into the current context. 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.
Note
If the integrated type group tpool integrates a further type group with the TYPE-POOLS statement, this new type group is also integrated into the program.
Example
Integrating 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.
‎2007 May 04 8:13 AM
Hi
type-groups : slis,vrm.
check these type pools for clear and better understandality.
Regards,
Sreeram
‎2007 May 04 8:13 AM
Hi,
Type-pools is a place where u can store the type declarations globally which can be used in your ABAP program. Type-pools SLIS Stores all the ALV related Type definitions.
Regards,
Kasi S
‎2007 May 04 8:15 AM
Hi,
in type pools we can define constants and variables globally.
these variables and constants we can use in any of our programs,class builder,function builder,....
also check this link
http://sap.niraj.tripod.com/id26.html
rgds,
bharat.
‎2007 May 04 8:18 AM
Hi,
TYPE-POOLS,TYPES, TYPE-POOL
TYPES----
USER DEFINED DATATYPES ARE DECLARED WITH TYPES STATEMENT
TYPE-POOL----
IT IS A PROGRAM WITH A COLLECTION OF TYPES STATEMENTS. CAN BE CREATED IN DICTIONARY
TYPE-POOLS----
IT IS A COLLECTION OF TYPE-POOL s.
in an ABAP Program we use TYPE-POOLS statement which is a collection of different TYPE-POOL s
ex: TYPE-POOLS : ICON, SLIS etc
TYPES POOLS is group (library) of type, it's defined in dictionary and in this way a type needs to be declared only once in type pools.
When you want to use a type of a certains type pools, you only have to indicate the type pools without to declare the type in your program.
For example when you create an ALV program, all types you need to use are defined in types pool SLIS.
The objects that you don't want to create in SE11 but want a single place where you can declare them together will be done in TYPE POOLs. The best example is SLIS where you have declared all the TYPES that are required to execute a ALV REPORT using the REUSE functions.
In this way you define your types only once and then you can use them everytime you need:
TYPE-POOLS SLIS.
DATA: GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
The type SLIS_T_FIELDCAT_ALV is defined in type pools SLIS.
Hope this info would be helpful to you.
Regards,
Kumar.