博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
BASIS--笨办法解决ALV_GRID的列剪切丢失纪录的错误
阅读量:6697 次
发布时间:2019-06-25

本文共 1396 字,大约阅读时间需要 4 分钟。

最近经常有业务人员问及在ALV_grid输出报表中,选择某一列,点击左键,并点击弹出菜单的复制文本,复制出的文本存在丢失 (纪录不少,但部分纪录的文本丢失)。该如何解决呢?

后来跟踪代码发现这个命令没有向后台提交APPLICATION命令,应该提交的是SYSTEM事件。这样就没法跟踪了,我就想到用“pagedown",将GRID显示的数据都刷新显示出来,再来做这个操作就没有纪录丢失了。

得出的结论,sap的gui的执行拷贝实际上是拷贝客户端的缓冲。

关于system event 和application event的说明:

  • System events
  • are is triggered before any automatic field checks (for example, required fields) have taken place on the screen, and before any field transport. The PAI and PBO events are not triggered. Consequently, you cannot access any values that the user has just changed on the screen. Furthermore, there is no field transport back to the screen after the event, so values that you have changed in the event handling are not updated on the screen.

The handler method that you defined for the event is called automatically by the system. However, you can use the method set_new_ok_code to set a new value for the OK_CODE field. This then triggers the PAI and PBO modules, and you can evaluate the contents of the OK_CODE field as normal in a PAI module.CL_GUI_CFW=>DISPATCH .

  • Application events 
  • are triggered automatically at the end of the PAI event. Consequently, all field checks and field transport has taken place. If you want the event handler method to be called at a particular point during PAI processing, you must trigger the event handler using the static method
  • 转自:

转载于:https://www.cnblogs.com/ruingy/p/3454367.html

你可能感兴趣的文章
Bossie Awards 2015: The best open source applicati
查看>>
linux zip/unzip命令
查看>>
DreamWeaver连接Tomcat用以编辑和测试JSP
查看>>
浅谈开发中的MVVM模式及与MVP和MVC的区别
查看>>
Android属性动画进阶用法
查看>>
Android Studio主题设置、颜色背景配置
查看>>
highcharts 显示网格
查看>>
window.parent,top,window.self,parent,opener
查看>>
转些别人收集的歌
查看>>
LeetCode题解-3-Longest Substring Without Repeating Characters
查看>>
freemarker 从 spring boot execute jar可执行jar中访问模板文件
查看>>
yum只下载软件不安装的两种方法
查看>>
springside 参考地址
查看>>
【案例】数据量猛增,BI分析效率太低怎么破?
查看>>
Java 类加载机制详解
查看>>
IDEA使用技巧
查看>>
cookies的存值问题
查看>>
Sublime 解决目录显示为方块的问题
查看>>
spring MVC中页面添加锚点
查看>>
kettle-实现每个分组的前N的数据
查看>>