Skip to Content
0
Former Member
Aug 14, 2009 at 03:57 PM

header text of alv

30 Views

Hi this is saroj.

i am new to alv reports.i have done a alv report by using FMs events_get,commentary_write,grid_display.

i am getting the data but i am not getting the header text of report and logo.

my coding is like this.

tables: kna1.
types: begin of it,
           ----------
          end of it.
data: it_field type slis_t_fieldcat_alv,
        wa_field type slis_fieldcat_alv,
       it_event type slis_t_event,
      wa_event type slis_alv_event,
      it_list type slis_t_listheader,
      wa_list type slis_listheader,
      repid type sy-repid.

perform select.
perform event.
perform header.
perform logo using it_list.
perform display.

in subroutine event:
-----------------------------------
reuse_alv_events_get
exporting
    i_list_type = 0.
importing
   et_events = it_event.

wa_event-name = 'top_of_page'.
wa_event-form = 'logo'.
append wa_event to it_event.

in subroutine header:
---------------------------------------
wa_list-typ = 'H'.
WA_LIST-INFO = 'SOME TEXT'.
APPEND WA_LIST TO IT_LIST.

IN SUBROUTINE LOGO.
---------------------------------------
REUSE_ALV_COMMENTARY_WRITE
EXPORTING
    IT_LIST_COMMENTARY = 'IT_LIST'
   I_LOGO = 'ENJOYSAP_LOGO'.

-


my issue is that i am getting the data but i am not getting the header text and logo.

please solve the issue.please give sample code.

regards

saroj kanta

Edited by: Julius Bussche on Aug 15, 2009 7:03 AM