BASIS–笨办法解决ALV_GRID的列剪切丢失纪录的错误详解编程语言
2023-06-13 09:11:49 时间
最近经常有业务人员问及在ALV_grid输出报表中,选择某一列,点击左键,并点击弹出菜单的复制文本,复制出的文本存在丢失 (纪录不少,但部分纪录的文本丢失)。该如何解决呢?
后来跟踪代码发现这个命令没有向后台提交APPLICATION命令,应该提交的是SYSTEM事件。这样就没法跟踪了,我就想到用“pagedown ,将GRID显示的数据都刷新显示出来,再来做这个操作就没有纪录丢失了。
得出的结论,sap的gui的执行拷贝实际上是拷贝客户端的缓冲。
关于system event 和application event的说明:
System eventsare 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 转自:IT虾米网原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/18357.html
c相关文章
- 50个常见的 Java 错误及避免方法(第二部分)详解编程语言
- springmvc form表单提交报400错误详解编程语言
- 处理 Java 的“Cannot allocate memory”错误详解编程语言
- 类A是公共的,应在名为A.java的文件中声明错误详解编程语言
- 关于org.mybatis.spring.MyBatisSystemException:Parameter ‘userId’ not found. 错误调试详解编程语言
- 解决ajax返回乱码错误详解编程语言
- Drools7在Intellij IDEA下的引入静态方法错误提示详解编程语言
- kafka运行错误:提示找不到或者无法加载主类错误解决方法详解编程语言
- c#打包发布时出现错误的解决方法总结详解编程语言
- js,java,浮点数运算错误及应对方法详解编程语言
- JAVA错误: 找不到或无法加载主类详解编程语言
- SAP ABAP常见错误记录之一:In RFC modules, only parameters with pass by value are allowed (参考参数在更新任务中不允许)详解编程语言
- SAP ABAP常见错误记录之二:specify reference table AND reference field详解编程语言
- ladon的jsonwsp文件parse_description方法报types未定义错误解决办法详解编程语言
- java 标准输出流 错误流 System.out System.err 标准输出与错误输出顺序不确定详解编程语言
- javac -encoding utf8 HelloWorld.java ,错误:非法字符:/65279详解编程语言
- Eclipse Push 到 Github 时出现 rejected – non-fast-forward 错误详解编程语言
- python的错误类型和异常处理详解编程语言