一、SLIS定义的ALV的事件名称
* Events
slis_ev_item_data_expand type slis_formname value 'ITEM_DATA_EXPAND',
slis_ev_reprep_sel_modify type slis_formname value 'REPREP_SEL_MODIFY',
slis_ev_caller_exit_at_start type slis_formname value 'CALLER_EXIT',
slis_ev_user_command type slis_formname value 'USER_COMMAND',
slis_ev_top_of_page type slis_formname value 'TOP_OF_PAGE',
slis_ev_data_changed type slis_formname value 'DATA_CHANGED',
slis_ev_top_of_coverpage type slis_formname value 'TOP_OF_COVERPAGE',
slis_ev_end_of_coverpage type slis_formname value 'END_OF_COVERPAGE',
slis_ev_foreign_top_of_page type slis_formname value 'FOREIGN_TOP_OF_PAGE',
slis_ev_foreign_end_of_page type slis_formname value 'FOREIGN_END_OF_PAGE',
slis_ev_pf_status_set type slis_formname value 'PF_STATUS_SET',
slis_ev_list_modify type slis_formname value 'LIST_MODIFY',
slis_ev_top_of_list type slis_formname value 'TOP_OF_LIST',
slis_ev_end_of_page type slis_formname value 'END_OF_PAGE',
slis_ev_end_of_list type slis_formname value 'END_OF_LIST',
slis_ev_after_line_output type slis_formname value 'AFTER_LINE_OUTPUT',
slis_ev_before_line_output type slis_formname value 'BEFORE_LINE_OUTPUT',
slis_ev_subtotal_text type slis_formname value 'SUBTOTAL_TEXT',
slis_ev_context_menu type slis_formname value 'CONTEXT_MENU'.
二、和事件相关的函数
2.1 获取所有事件到内表
data ct_events type slis_t_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 4
importing
et_events = ct_events
exceptions
list_type_wrong = 1
others = 2.
注意: i_list_type值说明:
0 = simple list REUSE_ALV_LIST_DISPLAY
1 = hierarchcal-sequential list REUSE_ALV_HIERSEQ_LIST_DISPLAY
2 = simple block list REUSE_ALV_BLOCK_LIST_APPEND
3 = hierarchical-sequential block list REUSE_ALV_BLOCK_LIST_HS_APPEND
4 =simple gridREUSE_ALV_GRID_DISPLAY
2.2 获取所有事件名称
REUSE_ALV_EVENT_NAMES_GET
三、CL_GUI_ALV_GRID的事件和 REUSE_ALV_GRID_DISPLAY定义的子过程对应关系
CL_GUI_GRID's Event |
REUSE_ALV_GRID_DISPLAY函数设置的用户定义子过程 |
end_of_list |
callback_html_end_of_list |
callback_end_of_list |
print_end_of_list |
callback_end_of_list |
end_of_page |
callback_end_of_page |
top_of_page |
callback_html_top_of_page |
callback_top_of_page |
print_top_of_page |
callback_top_of_page |
user_command |
callback_user_command |
data_changed |
callback_data_changed |
after_user_command |
callback_user_command(注意:根据函数设置先后触发CL_GUI_GRID的"TOP_OF_PAGE"和"END_OF_LIST"事件) |
before_user_command |
callback_user_command |
after_refresh |
无,系统根据选中设置grid的行选中处理 call method gt_grid-grid->set_selected_rows exporting it_index_rows = lt_rows. |
double_click |
callback_user_command |
hotspot_click(同double_click) |
callback_user_command |
subtotal_text |
callback_subtotal_text |
context_menu_request |
callback_context_menu |
分享到:
相关推荐
ABAP ALV总结,ALV格式,REUSE_ALV_GRID_DISPLAY_LVC函数使用
程序dump,报错为 The ABAP program lines are wider than the internal table.此文档有解决方法
ABAP官方教程--- BC400_EN_Col32:Introduction to the ABAP Workbench
ABAP官方教程系列---BC400_EN_46D_FV ABAP Workbench: Foundations and Concepts
sap 的abap编程 实现alv的多层输出 调用系统方法
ABAP
ABAP开发基础教程,SAP开发基本教程
ABAP_ALV_知识整理ABAP_ALV_知识整理ABAP_ALV_知识整理ABAP_ALV_知识整理ABAP_ALV_知识整理ABAP_ALV_知识整理ABAP_ALV_知识整理ABAP_ALV_知识整理ABAP_ALV_知识整理ABAP_ALV_知识整理
SAP中文教材全系列之:ABAP中文标准教材-BC400_ZH_Col63_FV_Part_A4 陆续更新中。
webdypro abap test tool
ABAP_ALV_知识整理
ALV进阶 ABAP SAP ABAP编程ALV进阶
ALV EDIT_MASK字段的使用ALV EDIT_MASK字段的使用 ALV EDIT_MASK字段的使用
ABAP - Keyword Documentation This documentation describes the syntax and meaning of the keywords of the ABAP language and its object-oriented part ABAP Objects. Alongside this, language frameworks ...
abap_alv工具栏修改。
ABAP TAW12_1 经过重点书签加工的电子文档
ALV_GRID TYPE REF TO CL_GUI_ALV_GRID, WA_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER. DATA WA_LAYOUT TYPE LVC_S_LAYO. WA_LAYOUT-EDIT = 'X'. CLASS LCL_EVENT_RECEIVER DEFINITION DEFERRED. ...
SAP-ABAP-OO-实现-CL-SALV-TABLE
SAP HR人事主数据批量导入,可以根据不同的信息类型来进行自动判断导入。 SAP ABAP开发
将所有ALV报表的开发都列在其中,相当不错的,希望对大家能够有帮助