Skip to Content
0
Former Member
Jan 15, 2011 at 07:55 AM

Not able to display logo on alv grid output

167 Views

hi

can anybody guide me.

i have written code for displaying logo on alv grid report.

i uploaded bmp image using OAER

but even then i am not able to display logo on the report please help me

i am using 4.7 version..

code...

REPORT ZALVLOGO .

type-pools: slis.

data: i_sflight type table of sflight.

*data: begin of i_sflight occurs 10.

*include structure sflight.

*data: end of i_sflight.

data: it_events type slis_t_event,

wa_events type slis_alv_event.

select * from sflight into table i_sflight.

perform form_fill_table.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_TOP_OF_PAGE = 'top-of-page'

I_STRUCTURE_NAME = 'sflight'

TABLES

T_OUTTAB = i_sflight

  • EXCEPTIONS

  • PROGRAM_ERROR = 1

  • OTHERS = 2

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

&----


*& Form top_of_page

&----


  • text

----


  • --> p1 text

  • <-- p2 text

----


FORM top-of-page .

data: t_header type slis_t_listheader,

wa_header type slis_listheader.

wa_header-typ = 'h'.

wa_header-info = 'FLIGHT DETAILS'.

APPEND wa_header to t_header.

CLEAR WA_HEADER.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = t_header

I_LOGO = 'ENJOY'.

  • I_END_OF_LIST_GRID =.

ENDFORM. " top_of_page

&----


*& Form form_fill_table

&----


  • text

----


  • --> p1 text

  • <-- p2 text

----


FORM form_fill_table .

clear wa_events.

wa_events-name = 'top-op-page1'.

wa_events-form = 'top-of-page'.

append wa_events to it_events.

ENDFORM. " form_fill_table