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

Replacement for get_fieldtab

Former Member
0 Likes
545

Hi all,

Can someone tell me if there is a function to replace get_fieldtab?

Mat

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
494

DDIF_NAMETAB_GET

THanks,

Naren

DDIF_NAMETAB_GET

THanks,

Naren

3 REPLIES 3
Read only

Former Member
0 Likes
495

DDIF_NAMETAB_GET

THanks,

Naren

Read only

0 Likes
494

Try CACS_GET_TABLE_FIELDS.

~Suresh

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
494

How about a class/method.



report zrich_0001.

type-pools: abap.

data : it_details type abap_compdescr_tab,
       wa_details type abap_compdescr.

data : ref_descr type ref to cl_abap_structdescr.

selection-screen begin of block b1 with frame title text .
parameters: p_table(30) type c.
selection-screen end of block b1.

* Get the structure of the table.
ref_descr ?= cl_abap_typedescr=>describe_by_name( p_table ).
it_details[] = ref_descr->components[].


loop at it_details into wa_details.
  write:/ wa_details-name, wa_details-type_kind, wa_details-length.

endloop.


Regards,

Rich Heilman