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

Read Type-pools into internal table

Former Member
0 Likes
1,301

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.

1 ACCEPTED SOLUTION
Read only

Lakshmant1
Active Contributor
0 Likes
1,159

Hi Tharani,

Check FM TYPD_GET_OBJECT

Thanks

Lakshman

9 REPLIES 9
Read only

Former Member
0 Likes
1,159

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.

Read only

0 Likes
1,159

Hi,

How to read the type-pools into an internal table?

Read only

0 Likes
1,159

Hi..

Is there any way to read type-pools into an internal table?

Read only

0 Likes
1,159

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

Read only

Former Member
0 Likes
1,159

Hi,

Can u explain ur requirement briefly.

Thanks.

Read only

0 Likes
1,159

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.

Read only

Former Member
0 Likes
1,159

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

Read only

Lakshmant1
Active Contributor
0 Likes
1,160

Hi Tharani,

Check FM TYPD_GET_OBJECT

Thanks

Lakshman

Read only

Former Member
0 Likes
1,159

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.