2006 Dec 07 7:27 PM
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
2006 Dec 07 7:34 PM
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
2006 Dec 07 7:29 PM
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
2006 Dec 07 7:31 PM
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
2006 Dec 07 7:34 PM
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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |