技术干货程序猿阵线联盟-汇总各类技术干货

屏幕下拉框传值

2017-05-18  本文已影响26人  Mmm_余安
效果图.png 如图.png

它会有一个下拉标志

     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    里面写入传值的代码即可。










上一篇下一篇

猜你喜欢

热点阅读