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: 

how to create type pools

Former Member
0 Kudos

Hi Experts,

I have a query like can we create custom "type pools". if yes, then what are the steps to create it.

Thank you in advance.

Samad.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi..

Pls check the f1 help in ur system.

It gives u simple examples. Anyway,

Typepool falls under - Data types.

Data Types

You can define program-local data types in ABAP programs that can be used for typing or declaring additional data types and data objects according to validity and visibility.

The corresponding statements are:

1. TYPE-POOLS

2. TYPES

3. INCLUDE TYPE

TYPE-POOLS

Syntax

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.

regards,

Padma

Edited by: Padmashree RamMaghenthar on Oct 13, 2008 11:18 AM

8 REPLIES 8

Former Member
0 Kudos

The TYPE-POOL statement introduces a table group.

You can only maintain type groups in the ABAP Dictionary (Transaction SE11). 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 the TYPE-POOLS statement.

Example

TYPE-POOL ABCDE. 
TYPES: ABCDE_PACKED TYPE P, 
       ABCDE_INT    TYPE I. 

Former Member
0 Kudos

Hi,

Yes,we can create the custom type pools.

Just Goto se11

select TYPE GROUP then Custom name CREATE.

Then write the source code as per your requirements.

you can use this in your rogram by defining as

TYPE-POOLS Custom name.

Regards

Former Member
0 Kudos

hi..

Pls check the f1 help in ur system.

It gives u simple examples. Anyway,

Typepool falls under - Data types.

Data Types

You can define program-local data types in ABAP programs that can be used for typing or declaring additional data types and data objects according to validity and visibility.

The corresponding statements are:

1. TYPE-POOLS

2. TYPES

3. INCLUDE TYPE

TYPE-POOLS

Syntax

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.

regards,

Padma

Edited by: Padmashree RamMaghenthar on Oct 13, 2008 11:18 AM

Former Member
0 Kudos

Hi Arif,

Welcome to SDN.

Goto SE11 --> TYPE GROUP.

in SE11 we have got and radiobutton call the TYPE GROUP ,

from there you can create a type group.

for reference yopu can check standard type groups

SLIS.

Regards

Kumar M.

Former Member
0 Kudos

Hi,

We can create TYPE GROUP in SE11.

You can have a look on standard SAp type groups like SLIS, Icon where in you can define all your types.

Thanx.

Former Member
0 Kudos

Yes u can. Just go se11 n select type group radio button give it a name and defines ur types in it.

It will look like this,

TYPE-POOL ZTest . "Your type pool name

Types: number type n,

name(40) type c.

0 Kudos

Hi :

Some one know where exist the option to create a type group in the version 4.5? this option do not exist in the SE11, thanks

0 Kudos

Hi :

Some one know where exist the option to create a type group in the version 4.5? this option do not exist in the SE11, thanks