简体   繁体   English

更改 Select-Options 值时是否有事件

[英]Is there an event when Select-Options value is changed

Is there an EVENT that triggers when a value is changed in a SELECT-OPTIONS ?SELECT-OPTIONS更改值时是否会触发 EVENT ? But directly when it's changed, without having to press Enter , as soon as the user enters a value and clicks somewhere else in the screen, or when a user chooses a value from the F4 value menu.但直接在更改时,无需按Enter ,只要用户输入一个值并单击屏幕上的其他位置,或者当用户从F4值菜单中选择一个值时。

I've try many event, like:我尝试了很多事件,例如:

AT SELECTION-SCREEN on s_carrid.
  "This trigger only when user hit "enter"

AT SELECTION-SCREEN on VALUE-REQUEST FOR s_carrid-LOW.
  "This trigger when user press F4, but nothing after selecting a value...

Thanks for your help谢谢你的帮助

DATA: v_carrid type s_carr_id.
SELECT-OPTIONS s_carrid for v_carrid no INTERVALS MODIF ID br5.

There's no event triggered when a value is changed in a SELECT-OPTIONS element.SELECT-OPTIONS元素中更改值时不会触发任何事件。 Events are raised only when a function code, a menu or a button is pressed, or eventually a radio button or a checkbox.仅当按下功能代码、菜单或按钮,或最终按下单选按钮或复选框时才会引发事件。

There's no event triggered when a value is returned from the value help ( F4 function key on the input field), the input field is directly filled with the selected value.数值帮助(输入栏的F4功能键)返回数值时没有触发事件,输入栏直接填入选中的值。

Instead, you may define some ABAP code when F4 or the value help button is pressed, display the search help, get the selected value and do whatever you want, like filling the input field with the value, and any other process.相反,您可以在按下F4或值帮助按钮时定义一些 ABAP 代码,显示搜索帮助,获取所选值并执行您想要的任何操作,例如用值填充输入字段,以及任何其他过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM