- 在屏幕上画一个框,定义为LISTBOX
它会有一个下拉标志
- 传值
gwa_function1 LIKE LINE OF git_function1.```
```REFRESH:git_function1. gwa_function1-key = '1'. "个就是变量下拉框的值
gwa_function1-text = '汽运'. "这个是text
APPEND gwa_function1 TO git_function1.
gwa_function1-key = '2'. "个就是变量下拉框的值
gwa_function1-text = '空运'. "这个是text
APPEND gwa_function1 TO git_function1.
gwa_function1-key = '3'. "个就是变量下拉框的值
gwa_function1-text = '火车'. "这个是text
APPEND gwa_function1 TO git_function1.
gwa_function1-key = '4'. "个就是变量下拉框的值
gwa_function1-text = '快递'. "这个是text
APPEND gwa_function1 TO git_function1.```
```"调用函数显示listbox里面的值 CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'LISTBOX1'
values = git_function1.```
由于在屏幕里,可写一个检测事件
![屏幕逻辑流.png](https://img.haomeiwen.com/i3459413/21c7de6e6c394787.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
在红色箭头处生成的MODULE 里面写入传值的代码即可。
网友评论