‎2008 Dec 30 5:51 AM
Hi all,
I want the type-pools content to be put into the internal table and find the Lines of Code in it.
Can anybody suggest how it is possible?
Regards,
K.Tharani.
‎2009 Jan 06 11:31 AM
‎2008 Dec 30 7:50 AM
hi
type pool will contain a list of related datas decalred in it ,
and we can use those datas declared
TYPE-POOLS abap.
DATA: litab_catalog TYPE abap_fieldcat_alv OCCURS 0,
s_catalog TYPE abap_fieldcat_alv.
DATA: LITAB_EVENT TYPE slis_t_event,
S_EVENT TYPE slis_alv_event.
CATALOG Creation.
s_catalog-col_pos = 1.
s_catalog-tabname = 'GITAB_ERROR'. "'T_ERROR'.
s_catalog-fieldname = 'RECNO'.
s_catalog-outputlen = 15.
s_catalog-seltext_l = 'Record Number'.
s_catalog-ddictxt = 'L'.
APPEND s_catalog TO litab_catalog.
i think u can move ur type pools value into a Internal table,
and then u can use
describe table internal table lines work area.
‎2008 Dec 30 9:35 AM
‎2009 Jan 06 9:21 AM
Hi..
Is there any way to read type-pools into an internal table?
‎2009 Jan 06 10:33 AM
Hello Tharani
Do you have fm INT_TYPE_SCAN_ALL_STYP available on your system? This module returns a list of all types defined within the type-pool.
Regards
Uwe
‎2009 Jan 06 10:40 AM
‎2009 Jan 06 2:04 PM
Hi Raj Kumar,
Need to find Lines of Code in a particular type-pools.
Eg. In type-pool Slis there are 529 lines.
So, how to find number of lines?
Regards,
K.Tharani.
‎2009 Jan 06 10:46 AM
hi,
The TYPE-POOL statement introduces a table group.
.You declare the types and constants of a type group using the TYPE-POOLS statement.
Example
TYPE-POOLS abap.
DATA it_tab TYPE abap_func_parmbind_tab.
this 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 it_tab
thanks
‎2009 Jan 06 11:31 AM
‎2009 Jan 06 2:04 PM
Hi Raj Kumar,
Need to find Lines of Code in a particular type-pools.
Eg. In type-pool Slis there are 529 lines.
So, how to find number of lines?
Regards,
K.Tharani.