Application Development 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: 

How to declare variable for Table type in the ABAP Editor

Former Member
0 Kudos

Hi!

I have Table Type 'FIELDNAME_TAB' (Table of fieldnames). I want to pass the list of fieldnames to this Table Type in the ABAP Editor.

Can anyone help me in this?

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You would declare the internal table like so.

data: itab type FIELDNAME_TAB.
data: wa like line of itab.


wa = 'This_value'.
append wa to itab.

Regards.

Rich Heilman

Message was edited by:

Rich Heilman

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You would declare the internal table like so.

data: itab type FIELDNAME_TAB.
data: wa like line of itab.


wa = 'This_value'.
append wa to itab.

Regards.

Rich Heilman

Message was edited by:

Rich Heilman

0 Kudos

Hi Rich!

Thanks for your reply.

My problem solved.

RAJ

Message was edited by:

raj kumar