Add Title(heading) to ALV Grid
2007-12-19 11:53
204 查看
非HTML的表头,这样的表头可以预览下载的,但是HTML格式的似乎是不行 In order to insert a report heading in to the ALV grid you need to perform the following steps: 1. Update 'REUSE_ALV_GRID_DISPLAY' FM call to include 'top-of-page' FORM 2. Create 'top-of-page' FORM
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. |
*-------------------------------------------------------------------** Form TOP-OF-PAGE **-------------------------------------------------------------------** ALV Report Header **-------------------------------------------------------------------*Form top-of-page.*ALV Header declarationsdata: 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.* Title wa_header-typ = 'H'. wa_header-info = 'EKKO Table Report'. append wa_header to t_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 append wa_header to t_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. append wa_header to t_header. clear: wa_header, t_line. call function 'REUSE_ALV_COMMENTARY_WRITE' exporting it_list_commentary = t_header.* i_logo = 'Z_LOGO'.endform. |
相关文章推荐
- How to display sub-totals in ALV Grid List?
- ABAP--处理'REUSE_ALV_GRID_DISPLAY'的双击事件
- ABAP--如何将REUSE_ALV_GRID_DISPLAY的题头自适应居中显示
- 如何在cl_gui_alv_grid设置list列表
- 关于ALV GRID的颜色
- ALV popup based on classic style REUSE_ALV_POPUP_TO_SELECT function module
- GRID方式ALV导出数据到本地丢掉最后一位的问题
- REUSE_ALV_GRID_DISPLAY 编辑数据
- ABAP--如何在ALV Grid打印页上加入页号
- ABAP--如何使用REUSE_ALV_GRID_DISPLAY函数删除内表数据(样例代码,感谢依风提供)
- GRID方式ALV导出数据到本地丢掉最后一位的问题
- Add linkbutton to RadGrid GroupHeader
- ABAP--如何在REUSE_ALV_GRID_DISPLAY标识不同行用不同的颜色
- [Grid Layout] Use the repeat function to efficiently write grid-template values
- python 使用GridSearchCV 报错 ValueError: not enough values to unpack (expected 2, got 1)
- Using Eclipse to develop grid services--Windows-based platforms(IBM教程)
- ALVGRID学习笔记----Add button on toolbar
- ALV Grid 行单击事件响应
- DevExpress 的GridPanel ExportToXls失败的解决方法
- The ALV Grid control