on 05-05-2004 3:12 PM
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
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.