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 POOLS

Former Member
0 Likes
1,913

Hi Frds

Y we r useing TYPE POOLS in ALV.

where we can see the type pools in SAP.

Thanks

Pari Vendhan.R

6 REPLIES 6
Read only

Former Member
0 Likes
1,011

Hi,

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.

SLIS is the type-pool for ALV.

Reward if it helps!

regards,

ramya

Read only

0 Likes
1,011

Hi All

thanks for ur's information .

By

Pari

Read only

Former Member
0 Likes
1,011

Hi

Type pool is a collection of pre defined data types..

Frequently used data types in programming are clubbed into a type pool so that if u write in ur code:

TYPE-POOLS: slis.

the declarations in SLIS will apply to ur code also..

SLIS contains data definitions for ALV structures & internal tables. so that u dont need to declare alv data everytime in ur program..

check out type pools: ICON, etc.. In SE11, type groups..

We can use ABAP ALV LIST and GRID function modules to display Normal LIST and Hiearchical LISTS .

All the definitions TYPES and STRUCTURES and CONSTANTS are defined

in the TYPE-POOL 'SLIS' ,so it should be declared first.

TYPE-POOLS : 'SLIS' .

To display ALV LISTS the function module used are :

REUSE_ALV_LIST_DISPLAY "For Normal LIST

REUSE_ALV_HIERARCHICAL_LIST_DISPLAY "For Hierarchical LIST

To display ALV GRID the function module used are :

REUSE_ALV_GRID_DISPLAY . "For GRID display

The most important component of the ALV is the FIELDCATALOG which is of

TYPE SLIS_T_FIEDLCAT_ALV

or of

TYPE STANDARD TABLE OF SLIS_FIELDCAT_ALV .

The line items of the field catalog are of

TYPE SLIS_FIELDCAT_ALV .

Check this link.

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid.htm

Read only

Former Member
0 Likes
1,011

Hi Rajasekaran,

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.

Reward if helpful,

Regards ,

SreekarKadiri.

Read only

Former Member
0 Likes
1,011

HI,

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.

1.Goto se11

2. data type : ur type-pool name

3. display.

Example :SLIS. KKBLO etc....

REgards,

kavitha.

Read only

Former Member
0 Likes
1,011

HI

u can see SLIS -goto se11 transaction and in database table-give SLIS...u can see type pool.