‎2007 Jun 14 12:58 PM
Hi friends, can any one tell me abt the TYPY POOLs, what is the use?, what i want to know abt interview point view...........
‎2007 Jun 14 1:01 PM
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forums">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forums</a><a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forums">CHK this</a>
‎2007 Jun 14 1:01 PM
Hi,
TYPE POOLS are small programs where we declare our own types using
TYPES statement.
We can also declare constants in that program using
CONSTANTS.
If your type pool name starts with XYZ then all the types and constants in it must start with XYZ.
Once we create this type pool it is available to all the programs and function modules if put the statement
TYPE-POOLS: xyz. in those porgrams TOP include.
Regards,
Sesh
‎2007 Jun 14 1:01 PM
‎2007 Jun 14 1:02 PM
HI,
type groups are for defining the variables and constants centrally in the abap dictionary.
eg:slis,icon,etc....
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.
rgds,
bharat.
‎2007 Jun 14 1:03 PM
HI,
TYpe-pools is very use full in ALV's
this for data decalation and decalring the internal table's and events with reference of satndard data objects,
this is called as type pools ,]
ex kkbol and sils
regards
suresh.d
‎2007 Jun 14 1:03 PM
Hi,
TYPE Pools can be thought of as an include having TYPE declarations.
The use of this in your program gives your program access to these TYPE declarations which can then be used directly in your program when declaring new data declaration.
Type-Pool.
Its nothing but abap code,
where some bunch of
TYPES (data types) and some data declaration,
is already done.
(which we can use in other programs)
(as the name suggests, it is a pool (bunch) of TYPES
If u add this stmt in ur ABAP program,
TYPE-POOLS tpool.
Example - SLIS_T_FIELDCAT_ALV is the table type for field catalog.
Regards
‎2007 Jun 14 1:08 PM
<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