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 display the column names of a table in the output

Former Member
0 Kudos

Hi,

I want to display the name of the columns of the table without using literals in a abap report.

EX: Consider the table KNA1

KUNNR NAME ADDRESS

I want to display the column names in the above fashion without using hardcoded write statements.

Thanking in anticipation

3 REPLIES 3

naimesh_patel
Active Contributor
0 Kudos

Hello,

Use the table DD03L to get the fields of the table.

Regrds,

Naimesh

Former Member
0 Kudos

Hello

Not sure if this helps but table field names are found in table DD03L.

Regards

Greg Kern

former_member583013
Active Contributor
0 Kudos

You can use this FM <b>DDIF_FIELDINFO_GET</b> It gives you all the names related to fields in a table -:)

Greetings,

Blag.