Application Development 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: 

type pools

Former Member
0 Kudos

Hi all

can anybody plz tell me what are type pools and where do we use them ??and whatz the difference between types and type pools?? do we need to create or type pools already exists??

Thanks in advance

search before posting/read the sap help

Edited by: Vijay Babu Dudla on Jan 21, 2009 8:50 AM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Lastly

but the same purpose can be solved using include programs.

we usually define global variable/types in include programs than whatz the difference between two or whatz the exact scenario where type-pools serve the puprpose

I hope you are getting the quesiton

Thanks

19 REPLIES 19

Former Member
0 Kudos

Hi

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.

Max

0 Kudos

means we can say type pools are the collection of various types that we defin in se11 in types (structure, de, table types) and than after defining it in our program we can access all types in pools for defining objets in our programs.

plz correct me if m wrong anywhere

Thanks

0 Kudos

Hi

Yes you're right.

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.

Max

0 Kudos

Yes you are right. But Type pools can be used extensively. You can browse through some of the complex type pools and you will get an idea.

Cheers

VJ

0 Kudos

Nikita,

These are not the collection of SE11 objects as it does NOT make sense to create a TYPE POOL with data dictianry objects. These 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.

Regards,

Ravi

Note : Please close the thread, if the question is answered

Former Member
0 Kudos

Hi Nikita,

Type pools are basically global Data decalarations which can be re-used.

For example type pools SLIS is used for ALV programming. These is one way of re-usability of the code.

Hope this helps.

Cheers

Vj

Former Member
0 Kudos

TYPE POOLs are nothing but collection of DATA TYPES. Using TYPEs you create DATA types within your program. The ones in TYPE POOLs can be used across all the programs.

There are quite a few standard TYPE POOLs created by SAP, depending on your requirement use them like COLOR, SLIS etc.

If you have a group of programs which are using a common set of variables, you can create your own TYPE POOL as well in SE11.

regards,

Ravi

Former Member
0 Kudos

Hi Nikita,

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.

It is already existing ones . For eg: SLIS, ABAP etc.

You can find the type pools in SE11.

goto Type group and enter SLIS .

you can find the data types declared in it.

Regards,

SP.

hymavathi_oruganti
Active Contributor
0 Kudos

<b>TYPE-POOLS,TYPES, TYPE-POOL</b>

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

0 Kudos

how do we create type pool in se11 as Hymavathi said.

we can create types (thatz structures, dataelements and table types) but which option do we need to use for creating type pool/pools in se11.

Thanks

0 Kudos

Hi Nikita,

I think you can create type pools in Type-group section of SE11.

Just give a name say ZHELO and create..

Regards,

SP.

0 Kudos

hi,

use se11..

<b>TYPE GROUP</b> OPTION

<b>MARK HELPFUL ANSWERS AND CLOSE THIS THREAD..</b>

Message was edited by: Ashok Kumar Prithiviraj

0 Kudos

Hi

If you're using a releaese greater than 4.5

trx SE11: Utilities->Other Dictionary Objects->Type Group

Max

0 Kudos

WHAT I MEAN IS,

The TYPE-POOL statement introduces a table group.

You can only maintain type groups in the ABAP Dictionary (Transaction SE11). The name tpool must correspond to the name in the ABAP Dictionary. You may only define types and constants in a type group. The name of each type and constant must begin with the name of the type group followed by an underscore. You declare the types and constants of a type group using TYPE-POOLS

statement.

0 Kudos

WHAT I MEAN IS,

The TYPE-POOL statement introduces a table group.

You can only maintain type groups in the ABAP Dictionary (Transaction SE11). The name tpool must correspond to the name in the ABAP Dictionary. You may only define types and constants in a type group. The name of each type and constant must begin with the name of the type group followed by an underscore. You declare the types and constants of a type group using TYPE-POOLS

statement.

Former Member
0 Kudos

Lastly

but the same purpose can be solved using include programs.

we usually define global variable/types in include programs than whatz the difference between two or whatz the exact scenario where type-pools serve the puprpose

I hope you are getting the quesiton

Thanks

0 Kudos

Hi

I believe there isn't a particular difference between TYPE-POOLS or INCLUDE in a normal ABAP program because in this situation they are the same main.

But the TYPE-POOLs have the important task in OO program, infact tit can insert them in the attributes of a CLASS.

Max

0 Kudos

Nikita,

You are right in one sense. But INCLUDES can be used to have common subroutines also and they are not part of the data dictionary that user can search for them.

TYPE POOLS are meant for DATA TYPEs alone and user can search for them in SE11.

Unless some one tells you to use a specific include, you don't know the existence of the same.

Regards,

Ravi

Note :Please close the post, if the question is answered

Former Member
0 Kudos

Thanks guyz for all your responses

Now i got complete idea about type pools

and closing the thread