SAP Control Framework 丢失事件?
一、情况一描述:
1、ABAP中使用了自定义ActiveX控件;
比如一个时间控件,控件隔5秒钟后触发一次事件通知容器,然后不再触发。
2、在PBO中初始化控件并注册事件、指定事件处理方法;
3、运行程序
(1)当屏幕还没有出现,但控件已触发了事件的情况下,ABAP事件处理方法不能被调用;
注:间隔是5秒不会出现问题,如果把间隔缩小到10ms就会出现问题了,因为控件已经触发了事件,此时Screen还没出现呢。
(2)当屏幕已经出现后,ABAP事件处理方法调用正确。
如果打开自动化跟踪日志功能,在第(1)种情况下,可以看到类似下面的警告信息:
“<30=Warning: Active-X shellId 125 tried to fire event 1 while token is at server => skipped event”
4、控件在其他语言中使用,包括JavaScript、VBA、C#、VC、Delphi我都做了测试,是没有问题的。
二、情况二描述:
(1)假设ActiveX控件有一个方法,这个方法会触发一个事件;
(2)ABAP的Screen中加个按钮,PAI中调用控件的这个方法,结果发现ABAP仍然不能响应这个事件。
三、综合上面两种情况,期望结果:
只要控件触发事件,ABAP事件处理程序应该必须调用。
困扰了我好久的问题,写在这里。向有知道原因的朋友请教,也作为一个问题留着将来解决!
2009.3.19日,今天终于找到了一些东西,写在这:
Lost Events
2006-06-07 17:12:45 Sam Mesh Business Card [Reply]
Could you please elaborate the conditions under which some events from ActiveX inside SAPGUI could be lost and the ways to fight this?
It seems that when SAPGUI flushes (ignores) any events when it is communicating with the SAP System.
I've found the following related links so far (but they did not help in full:):
- https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/995 (this article:)
- http://www.sapgenie.com/abap/controls/how.htm
- http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCICTUT/BCCICTUT.pdf
-
The execption here is a timer control. It fires an event that must be sent to the server via a flush reguardless of what is happening within the UI because it is time based. Therefore if you press a button on the frontend and a flush occurs and a timer throws an event during the flush - the timer event will be lost. Afterall the ABAP session can't handle two events simultaniously - there is no synch logic.
This example is based upon testing that was done back in 2004. As a customer at a time we entered our findings in a support message to SAP. We were informed that this was the designed functionality of the Control Framework. I have not repeated this test in the time since then.
-
> We were informed that this was the designed functionality of the Control Framework.
Our system should handle external events. It is OK to queue them in our system but it is not OK to blindly send them to SAP without knowing when it is capable to handle them. Where could I find an additional information about this "designed functionality of the Control Framework"?-
>Where could I find an additional information about this "designed functionality of the Control Framework"?
There really isn't much publically available information on the Control Framework any longer. The best documentation I can point you to is from the help portal:
http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/147a36c70d2354e10000009b38f839/frameset.htmThis isn't really a strategic development tool positioned towards customers any longer. With the introduction of Web Dynpro - customers are really directed toward these newer tools for custom development.
-
-
SAP Control Framework 丢失事件?相关推荐
- SAP Control framework
引用:翱翔云天 Make you farmiliar with SAP control framework: Control framework主要包含两个组件: 1. CL_GUI_CFW: 这个类 ...
- SAP Control framework–实例
引用:翱翔云天 274 views 1.1 例子 好了,说了这么多,我们举一个小例子,来使用这三个类,关于dragdrop类,我们会在后面介绍其具体的使用方法. 背景: 我们得到了一个图片,然后把它显 ...
- android framework 触摸屏事件传递
android framework 触摸屏事件传递 对于像我这样刚入门的Android程序员,如果想大致弄清楚触摸屏事件传到用户界面的过程,我觉得需要弄清楚以下几个部分: 一 Activity, Wi ...
- sap屏幕元素与事件
sap屏幕基本元素的创建 select-options对象:通常用于参照一数据库字段来建立数据输入域. 定义代码: select-options: data for sy-datum. paramet ...
- where and when navigation target url is retrieved by SAP UI5 Framework
Created by Jerry Wang, last modified on Jan 17, 2015 在UI上点击某个tile时,framework会去取该tile 对应的navigation u ...
- C#中控件Control的Paint事件和OnPaint虚函数的区别
句柄 : 句柄,是整个Windows编程的基础.一个句柄是指使用的一个唯一的整数值,即一个4字节(64位程序中为8字节)长的数值,来标识应用程序中的不同对象和同类对象中的不同的实例,诸如,一个窗口,按 ...
- 给自定义控件(Web Control)添加事件的几种方法。前两种方法可以不实现IPostBackEventHandler...
写自定义控件已经好久了,也有几个用得时间比较长的,但是对于"事件"一直是比较模糊,没有很详细的理解. 最近升级分页控件,由于原来使用的是VB.net(在V ...
- 来自Yang Terry的关于SAP CRM One Order事件回调机制的分享
对于call back这类型问题的调优 (1) 检查客户注册的FM在event上是否合理 For each change of a flat 1Order object there is an AFT ...
- eBPF-4-perf_map的丢失事件lost_event解读
文章目录 一.什么是eBPF lost events 二.tracing the code Section 1 - BPF.open_perf_buffer Section 2 - BPF.perf_ ...
最新文章
- vmware 利用镜像 配置yum本地源
- oracle表空间处理操作
- 多径传播matlab仿真·信号分析处理
- 拉格朗日插值的优缺点_拉格朗日与牛顿插值法的比较
- 设置LD_LIBRARY_PATH不起作用解决
- 使用BeetleX访问redis服务
- html-表单初级验证
- MapReduce论文
- 1013-----C语言----------几个va_宏函数的使用
- 降维系列之 SNE与t-SNE
- nachos 5.0j(java版)学习笔记一:环境搭建
- Silvaco_VP_INIT
- lwj_C#_集合stack栈和queue队列
- 大学计算机品牌活动总结,【推荐】大学工作总结4篇
- xp系统开机自检很久_XP开机卡在自检不能进入系统的解决办法
- 无线电波是怎么产生的
- 正规的打码网站使用方法有哪些
- JS高级程序设计(14)
- 程序员练级攻略----转自酷壳网coolshell.c n
- C#控件随窗体大小动态调整
热门文章
- Java实现二叉树的创建、递归/非递归遍历
- eclipse运行时不自动保存的解决方法
- Andorid开发学习---ubuntu 12.04下搭建超好用的安卓模拟器genymotion 安装卸载virtualbox 4.3...
- 人人可以理解的区块链100问——比特币可以用于支付吗?
- 报表中如何控制附件的上传和下载权限
- 2030年,逾1亿中国人需要学习新技能并转换岗位,这就是摩擦性失业
- MongoDB 文档的更新操作
- 论如何优雅的处理回文串 - 回文自动机详解
- java并行体系结构
- hdu 4350 2012 多校 - 6