我的公司为我们提供通过他们的公司门户,而不是SAPGui访问SAPGui的权限。我想是因为安全原因。不确定它是如何登录我们的,可能是SSO,或者后台有某种会话密钥,但是我尝试了下面的脚本来自动化一些SAP进程,但是它没有播放。
If Not IsObject(application) Then
Set SapGuiAuto = GetObject("SAPGUI")
Set application = SapGuiAuto.GetScriptingEngine
End If
If Not IsObject(connection) Then
Set connection = application.Children(0)
End If
If Not IsObject(session) Then
Set session = connection.Children(0)
End If
If IsObject(WScript) Then
WScript.ConnectObject session, "on"
WScript.ConnectObject application, "on"如果我转到脚本文件并双击它,我会在第2行中得到一个语法错误。我认为,由于缺乏通过GUI访问SAP的权限,它要求我提供凭据(在门户中,我通过SSO登录)。
这是错误的原因吗?
发布于 2020-04-18 15:15:56
SAP接口,它是S4HANA的默认值,您可以在公司门户中使用它

不支持从其标题SAP脚本中自然出现的GUI脚本,也就是说,它只受SAP GUI的支持。
有什么可供选择的:
最后,我没有看到真正的自动化替代/接替Fiori,这是简单和方便的SAPGUI脚本为SAPGUi。
https://stackoverflow.com/questions/61250907
复制相似问题