Skip to Content
0
Jul 03, 2009 at 09:47 AM

fetching internal table structure

32 Views

Hi all,

My requirement is to fetch the structure of the internal table declared in a program from another program.

For Eg:

Program Pgm1 has internal table which has fields(f1 , f2).

In another program Pgm2, I nede to get the fields f1 and f2 if I give the program name and the internal table name as inout.

i have tried cl_abap_typedescr=>describe_by_data, but it returns only the structure inside the same program..

The FM GET_GLOBAL_SYMBOLS can be used to fetch the internal tables from another program.

Is there any way to retrive the structure of an internal table from another program???

Thnks,

Sreekanth