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

ALV reporting

Former Member
0 Likes
666

hello all,

i'm a novice in ABAP.can someone tell me what are type-pools? why do we use them in ALV reporting?

thanks & regards,

seenu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
632

Hi,

Type Pools : are collection of Data type declarations.

These type declarations are globally available across all SAP applications.

Type pools can be created in SE11 (SAP dictionary).

Basic form

TYPE-POOLS typepool.

Effect

Includes the types and constants of a type group. If the type group typepool has already been included, the statement is ignored. You can only maintain a type group via the ABAP/4 Dictionary (using Transaction SE11 ). You introduce a type group with the TYPE-POOL statement. Since the types and constants specified in a type group have global validity, you cannot use the statement within a FORM or FUNCTION .

Example

TYPE-POOLS VERI1.

DATA X TYPE VERI1_TYP1.

For more information click the link below

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm

Regards,

Vara

hello all,

i'm a novice in ABAP.can someone tell me what are type-pools? why do we use them in ALV reporting?

thanks & regards,

seenu

3 REPLIES 3
Read only

raja_thangamani
Active Contributor
0 Likes
632

HI,

TYPE-POOLS

<b>Syntax</b>

TYPE-POOLS tpool.

<b>Effect</b>

In order to use the definitions of a type group, you have to integrate the type group into the program.

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.

<b>

For ALV:</b>

YOu need defined in types pool <b>SLIS</b>.

The reason is,


TYPE-POOLS SLIS.
DATA: GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.

The type <b>SLIS_T_FIELDCAT_ALV</b> is defined in type pools SLIS.

Raja T

Message was edited by:

Raja T

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
632

Type-pools are just a way of modulerizing code, The code that is held in a type pools are just a bunch of TYPES statements, Then when you say TYPE-POOLS statement in your program, you can then use any TYPE which as been defined in the type-pool.

Types-pools: slis.

For example, you can now use any type which is defined in SLIS. The SLIS Type Pool holds all of the types used when programming the ALV grid using the REUSE function modules.

Regards,

Rich HEilman

Read only

Former Member
0 Likes
633

Hi,

Type Pools : are collection of Data type declarations.

These type declarations are globally available across all SAP applications.

Type pools can be created in SE11 (SAP dictionary).

Basic form

TYPE-POOLS typepool.

Effect

Includes the types and constants of a type group. If the type group typepool has already been included, the statement is ignored. You can only maintain a type group via the ABAP/4 Dictionary (using Transaction SE11 ). You introduce a type group with the TYPE-POOL statement. Since the types and constants specified in a type group have global validity, you cannot use the statement within a FORM or FUNCTION .

Example

TYPE-POOLS VERI1.

DATA X TYPE VERI1_TYP1.

For more information click the link below

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm

Regards,

Vara