Skip to Content
0
Former Member
Jul 05, 2016 at 04:24 AM

Top-of-page is displayed blank

218 Views

Hi Friends,

Good Day all!!

Can any one guide me, when i use top of page with events as per below code i get a blank top of page in ALV output..

FORM build_header.

CLEAR wa_listheader.

wa_listheader-typ = 'A'.

wa_listheader-info ='SAP ALV Report'.

APPEND wa_listheader TO it_listheader.

endform.



form display_header.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = it_listheader.

ENDFORM.


form display_alv.

v_repid = sy-repid.

sort gt_out_table by empid.

s_alv_event-name = 'TOP_OF_PAGE'.

s_alv_event-form = 'display_header'.

APPEND s_alv_event TO i_alv_event.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = v_repid "Report ID

is_layout = v_layout "Layout

it_fieldcat = t_fcat "Field catalog

IT_EVENTS = i_alv_event

TABLES

t_outtab = gt_out_table. "Output table

endform.


Please guide me what has to be changed so that i data gets populated on top of page.


Thanks a lot in advance for your help!

Regards,

Archana