cancel
Showing results for 
Search instead for 
Did you mean: 

How to Display Headers for ALV report using classes?

Former Member
0 Kudos

Can ayone tell me how to create headers as we do using COMMENTARY_WRITE, but by using classes.? is there any other way of doing it?

If you illustrate with an example, that would be great.

Thnx in advance

Balaji

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

I am not sure this answers your question but when creation a ALV tree using classes you can build the heading in the same way as the COMMENTARY_WRITE and then include the resultant table (it_list_commentary) when setting the ALV tree for first display:

CALL METHOD tree1->set_table_for_first_display

EXPORTING

is_hierarchy_header = l_hierarchy_header

it_list_commentary = lt_list_commentary

i_logo = l_logo

  • i_background_id = 'ALV_BACKGROUND'

i_save = 'A'

is_variant = ls_variant

CHANGING

it_outtab = it_setupalv

  • gt_sflight "table must be emty !!

it_fieldcatalog = gt_fieldcatalog.

More info can be found on http://www.sapdev.co.uk in the following section ABAP dev -> Reporting development -> Advance list viewer(ALV)