简体   繁体   English

带有 SAP GUI 7.40 的 Excel VBA - SAP.Functions 不起作用

[英]Excel VBA with SAP GUI 7.40 - SAP.Functions not working

I have a Excel VBA which connects to SAP, pulls some data and does some processing on it.我有一个连接到 SAP 的 Excel VBA,提取一些数据并对其进行一些处理。 It was working fine with SAP GUI 7.20 But it stopped working when I installed SAP GUI 7.40 .它在SAP GUI 7.20 上运行良好但是当我安装SAP GUI 7.40时它停止工作。

My code is as below :我的代码如下:

Dim obBAPICall As Object

'   *   Create object
Set obBAPICall = CreateObject("SAP.Functions")
.
.

I get following error :我收到以下错误:

在此处输入图片说明

I've already gone through some weblinks and I believe I've all the required references.我已经浏览了一些网络链接,我相信我已经掌握了所有必需的参考资料。 (In fact, I've added many more in order to troubleshoot the problem). (实际上,为了解决问题,我添加了更多内容)。

在此处输入图片说明

My SAP GUI version is :我的 SAP GUI 版本是:

在此处输入图片说明

Any help is highly appreciated.任何帮助都受到高度赞赏。

Thank you.谢谢。


Edit : Following code does not have any problem :编辑:以下代码没有任何问题:

Set SAPguiApp = CreateObject("Sapgui.ScriptingCtrl.1")

Got it !明白了! The problem was with the latest MS office product (and not with SAP GUI 7.40).问题在于最新的 MS 办公产品(而不是 SAP GUI 7.40)。 The IT guys had rolled out some updates in MS Office and it was creating a problem. IT 人员在 MS Office 中推出了一些更新,但它产生了问题。 I restored MS Office and it is working fine now.我恢复了 MS Office,现在工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM