Skip to Content
author's profile photo Former Member
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


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

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


    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


    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


    it_outtab = it_setupalv

    • gt_sflight "table must be emty !!

    it_fieldcatalog = gt_fieldcatalog.

    More info can be found on in the following section ABAP dev -> Reporting development -> Advance list viewer(ALV)

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.