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 add to a column?

Former Member
0 Kudos

hi

i have a column in my itab which doesnt have a header

i use cl_salv_table

how can i add header to this column

thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

it' simple

just

code

wa_fieldcatalog-fieldname = 'FIELDNAME'.
wa_fieldcatalog-col_pos = '1'.
append wa_fieldcatalog  to t_fieldcatalog.

thanks

ravi

2 REPLIES 2

former_member228751
Contributor
0 Kudos

Hi ami,

add the header for this column where the header for other columns are added.

Please put iur query in details with code.

Regards,

Sachin

Former Member
0 Kudos

Hi,

it' simple

just

code

wa_fieldcatalog-fieldname = 'FIELDNAME'.
wa_fieldcatalog-col_pos = '1'.
append wa_fieldcatalog  to t_fieldcatalog.

thanks

ravi