AT LINE-SELECTION

Syntax 语法

AT LINE-SELECTION.

Effect 作用

This statement defines an event block whose event is triggered by the ABAP runtime environment during the display of a screen list - provided the scren cursor is on a list line and you select a function using the function code PICK. Through the definition of this event block, the standard list status is automatically enhanced in such a way that the function code F2 and, with it, the double-click mouse function is linked up to the function code PICK.

这个语句定义了一个在屏幕列表显示期间被ABAP运行环境触发的事件块-倘若屏幕指针在一个列表行上并且你用功能码PICK选择了一个功能。通过这个事件块的定义,标准列表状态就自动用功能码F2被增强并且,用它,鼠标双击功能被连接到功能码PICK.

Note 

If the function key F2 is linked with a function code different than PICK, each double click will trigger its even, usually AT USER-COMMAND, and not AT LINE-SELECTION.

如果功能键F2与不同于PICK的功能码联系在一起,每一次双击将通常触发AT USER-COMMAND而不是AT LINE-SELECTION。

Example 例子

This program works with the standard list status. A line selection with the left mouse key causes the event AT LINE-SELECTION and creates details lists.

这个程序需要标准的列表状态。鼠标左键的选择触发事件AT LINE-SELECTION并且产生明细列表。

REPORT demo_at_line_selection.
START-OF-SELECTION.
  WRITE 'Click me!' COLOR = 5 HOTSPOT.
AT LINE-SELECTION.
  WRITE: / 'You clicked list', sy-listi,
         / 'You are on list',  sy-lsind.
  IF sy-lsind < 20.
    SKIP.
    WRITE: 'More ...' COLOR = 5 HOTSPOT.
  ENDIF.

AT LINE-SELECTION 无效

这个就是F2的原因啊 ,可以设置个就解决问题了啊

  • 5
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值