hi all,
I am using top of page to siplay the header.. but i am not getting the result for this. my code is as follows:
*Build fieldcatalog.
PERFORM build_catalog. " in this i have wriiten field catlaog
*display Report
PERFORM display.
&----
*& Form DISPLAY
&----
To display ALV Report
----
FORM display .
DATA: l_w_event TYPE slis_alv_event.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_callback_top_of_page = 'TOP_OF_PAGE'
it_fieldcat = t_fcat
TABLES
t_outtab = t_bill_data
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. " DISPLAY
&----
*& Form TOP_OF_PAGE
&----
text
----
FORM top_of_page.
*Report Header
t_w_header-typ = 'H'.
t_w_header-info = text-001.
APPEND t_w_header TO t_header.
CLEAR t_w_header.
*Billing Date
t_w_header-typ = 'S'.
t_w_header-key = 'Billing Date: '.
t_w_header-info = s_fkdat.
APPEND t_w_header TO t_header.
CLEAR t_w_header.
*Company Code
t_w_header-typ = 'S'.
t_w_header-key = 'Company Code: '.
t_w_header-info = s_bukrs.
APPEND t_w_header TO t_header.
CLEAR t_w_header.
*Run Date
t_w_header-typ = 'S'.
t_w_header-key = 'Run Date: '.
t_w_header-info = sy-datum.
APPEND t_w_header TO t_header.
CLEAR t_w_header.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = t_header.
ENDFORM. "TOP_OF_PAGE
Please help me in this..