日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

abap--REUSE_ALV_GRID_DISPLAY事件子过程和cl_gui_grid类的事件对应关系

發布時間:2025/3/20 编程问答 16 豆豆
生活随笔 收集整理的這篇文章主要介紹了 abap--REUSE_ALV_GRID_DISPLAY事件子过程和cl_gui_grid类的事件对应关系 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

一、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? grid???REUSE_ALV_GRID_DISPLAY

2.2 獲取所有事件名稱
REUSE_ALV_EVENT_NAMES_GET

三、CL_GUI_ALV_GRID的事件和 REUSE_ALV_GRID_DISPLAY定義的子過程對應關系

CL_GUI_GRID's EventREUSE_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_clickcallback_user_command
hotspot_click(同double_click)callback_user_command
subtotal_textcallback_subtotal_text
context_menu_requestcallback_context_menu

總結

以上是生活随笔為你收集整理的abap--REUSE_ALV_GRID_DISPLAY事件子过程和cl_gui_grid类的事件对应关系的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。