‎2007 May 22 9:04 AM
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.
‎2007 May 22 9:06 AM
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.
‎2007 May 22 9:06 AM
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.
‎2007 May 22 9:19 AM
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...
‎2007 May 22 9:24 AM
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.
‎2007 May 22 10:08 AM
‎2007 May 22 9:07 AM
‎2007 May 22 9:11 AM
Hi ramesh
Give me your mail id i'll forward a nice matreial for alv
rewards if helpfull
Regards
Pavan
‎2007 May 22 9:14 AM
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.
‎2007 May 22 9:19 AM
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
‎2007 May 22 6:34 PM