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

Difference between TYPE-POOL and TYPE-POOLS statements!!!!

Former Member
0 Likes
1,526

Hi All,

Can any one give me an idea on the differences bw the statements Type-Pool and Type-Pools?

Also, i am planning to learn ALVs, so how can i proceed on this. Please advice...

Thanks in advance.

Ramesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,096

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

Regards,

Priyanka.

9 REPLIES 9
Read only

Former Member
0 Likes
1,097

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

Regards,

Priyanka.

Read only

0 Likes
1,096

Hi Priyanka,

Thanks for the information.

suppose if i want to create a type group in SE11. How can i create? also please let me know what ever i created in SE11, the same will be related to TYPE-POOL. whenever we want to use the same TYPE-POOL, we use the statement like TYPE-POOLS in our ABAP programs to include our own types.

so my understanding is, the differences bw type and type-pool, type is valid for particular program(like LOCAL) and type-pool is valid for all the programs(Like GLOBAL Declaration). so we can use type-pool which is defined in SE11, whereever and whenever we want. am i rite??

Kindly advice...

Read only

0 Likes
1,096

Hi,

A Type Group allows for defining the non-predefined types and grouping them together. The type group is defined in the ABAP Dictionary and is centrally available for use in various programs.

For example, let us say you are using an ALV Grid in your program. You will have to define the field-catalog , layout etc., for the grid. You can simply include the type-group SLIS in your program and use the types required for these directly. You do not have to define the structures for these explicitly in your program.

/people/mark.finnern/blog/2004/08/10/spread-the-love

Regards,

Priyanka.

Read only

0 Likes
1,096

Thanks Priya. I got it now.

Read only

Former Member
0 Likes
1,096

Hi ramesh

Give me your mail id i'll forward a nice matreial for alv

rewards if helpfull

Regards

Pavan

Read only

0 Likes
1,096

Hi Pavan,

This is my mail-id : ramesh_masetty@yahoo.co.in

Thanks in advance for your help. Also give me some guidence on this, what are the mandatory statements for ALVs.

Read only

0 Likes
1,096

Hi Ramesh

If u want to know more about ALV then go for tcode LIBS

and once check that pdf file then u will come to know a clear knowledge even though if u have any doubt then u can ask me any time

this is sample code

CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
         EXPORTING
              I_CALLBACK_PROGRAM = REPID
              IS_LAYOUT          = H_LAYOUT
              IT_FIELDCAT        = HFIELD
              IS_KEYINFO         = GS_KEYINFO
              I_TABNAME_HEADER   = 'HDATA'
             I_TABNAME_ITEM     = 'IDATA'
              IT_EVENTS          = GT_HEVENTS
         TABLES
              T_OUTTAB_HEADER    = HDATA
              T_OUTTAB_ITEM      = IDATA.

*  AFIELD-REF_TABNAME = ''.
  AFIELD-KEY = 'X'.                    "define field as key
  APPEND AFIELD TO XFIELD.
  AFIELD-TABNAME = 'IDATA'.
  APPEND AFIELD TO HFIELD.

 CLEAR AFIELD.
  L_COUNT = L_COUNT + 1.
  AFIELD-COL_POS = L_COUNT.
  AFIELD-FIELDNAME = 'AUZTV'.
 AFIELD-TABNAME = 'FINALTAB'.
*  AFIELD-REF_TABNAME = ''.
  AFIELD-KEY = 'X'.                    "define field as key
  APPEND AFIELD TO XFIELD.
  AFIELD-TABNAME = 'IDATA'.
  APPEND AFIELD TO HFIELD.





ENDFORM.



FORM ZEVENTS.
  CLEAR XS_EVENT.
  XS_EVENT-NAME = slis_ev_item_data_expand.
  XS_EVENT-FORM = 'ITEM_DATA_EXPAND'.
  APPEND XS_EVENT TO GT_HEVENTS.

Regards

Pavan

Message was edited by:

pavan praveen

Read only

Former Member
0 Likes
1,096

Thanks a lot all for the help.