标签:style grid end screen cal 绑定 bsp column scree
"定义事件的类
CLASS LCL_EVENT_RECEIVER DEFINITION.
PUBLIC SECTION:
"事件的方法
METHODS: HANDLE_DOUBLE_CLICK OF CL_GUI_ALV_GRID
IMPORTING E_ROW
E_COLUMN .
ENDCALSS.
"类的实例化
CLASS LCL_EVENT_RECEIVER IMPLEMNTATION.
METHOD HANDLE_DOUBLE_CLICK.
LEAVE TO SCREEN 0.
ENDMETHOD.
ENDCLASS.
DATA EVENT_RECEIVER TYPE REF TO LCL_EVENT_RECEIVER.
CREATE OBJECT EVENT_RECEIVER.
"进行绑定
SET EVENT_RECEIVER->HANDLE_DOUBLE_CLICK FOR GO_ALV_GRID.
双击ALV GRID 的任意单元格,都会执行LEAVE TO SCREEN 0 语句并结束程序。
标签:style grid end screen cal 绑定 bsp column scree
原文地址:https://www.cnblogs.com/hejie-code/p/12189862.html