Skip to Content
author's profile photo
Former Member

How to Display Headers for ALV report using classes?

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on May 06, 2004 at 09:54 AM

    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)

    Add comment
    10|10000 characters needed characters exceeded