Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

type pool

Former Member
0 Likes
747

Hi friends, can any one tell me abt the TYPY POOLs, what is the use?, what i want to know abt interview point view...........

7 REPLIES 7
Read only

Former Member
0 Likes
715

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

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
715

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

Read only

Former Member
Read only

Former Member
0 Likes
715

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.

Read only

Former Member
0 Likes
715

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

Read only

Former Member
0 Likes
715

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

Read only

Former Member
0 Likes
715

<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