1. Update 'REUSE_ALV_GRID_DISPLAY' FM call to include 'top-of-page' FORM
2. Create 'top-of-page' FORM
Check the following code:
Check the following code:
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
i_save = 'X'
tables
t_outtab = it_ekko
exceptions
program_error = 1
others = 2.
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
i_save = 'X'
tables
t_outtab = it_ekko
exceptions
program_error = 1
others = 2.
-------------------------------------------------------------------
• Form TOP-OF-PAGE *
-------------------------------------------------------------------
• ALV Report Header *
-------------------------------------------------------------------
Form top-of-page.
• Form TOP-OF-PAGE *
-------------------------------------------------------------------
• ALV Report Header *
-------------------------------------------------------------------
Form top-of-page.
*ALV Header declarations
data: t_header type slis_t_listheader,
wa_header type slis_listheader,
t_line like wa_header-info,
ld_lines type i,
ld_linesc(10) type c.
wa_header type slis_listheader,
t_line like wa_header-info,
ld_lines type i,
ld_linesc(10) type c.
• Title
wa_header-typ = 'H'.
wa_header-info = 'EKKO Table Report'.
wa_header-typ = 'H'.
wa_header-info = 'EKKO Table Report'.
append wa_header to t_header.
clear wa_header.
clear wa_header.
• Date
wa_header-typ = 'S'.
wa_header-key = 'Date: '.
CONCATENATE sy-datum+6(2) '.'
sy-datum+4(2) '.'
sy-datum(4) INTO wa_header-info. "todays date
wa_header-typ = 'S'.
wa_header-key = 'Date: '.
CONCATENATE sy-datum+6(2) '.'
sy-datum+4(2) '.'
sy-datum(4) INTO wa_header-info. "todays date
append wa_header to t_header.
clear: wa_header.
clear: wa_header.
• Total No. of Records Selected
describe table it_ekko lines ld_lines.
ld_linesc = ld_lines.
concatenate 'Total No. of Records Selected: ' ld_linesc
into t_line separated by space.
wa_header-typ = 'A'.
wa_header-info = t_line.
describe table it_ekko lines ld_lines.
ld_linesc = ld_lines.
concatenate 'Total No. of Records Selected: ' ld_linesc
into t_line separated by space.
wa_header-typ = 'A'.
wa_header-info = t_line.
append wa_header to t_header.
clear: wa_header, t_line.
clear: wa_header, t_line.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = t_header.
• i_logo = 'Z_LOGO'.
endform.
ALSO READ:
- Handling Radio Buttons in SALV Tree Display.
- Implementing F4 Search Help In OO ALV Grid Display.
- List Of Transport Requests In ALV Format.
- ALV Report With User Defined Buttons In It's Toolbar.
..... Back To Index On ALV List/ Grid Display.
..... Back To MAIN INDEX.
exporting
it_list_commentary = t_header.
• i_logo = 'Z_LOGO'.
endform.
ALSO READ:
- Handling Radio Buttons in SALV Tree Display.
- Implementing F4 Search Help In OO ALV Grid Display.
- List Of Transport Requests In ALV Format.
- ALV Report With User Defined Buttons In It's Toolbar.
..... Back To Index On ALV List/ Grid Display.
..... Back To MAIN INDEX.
No comments:
Post a Comment