‎2021 Sep 06 1:46 PM
Hi, i am using python to operate SAP.
import win32com.client
SapGuiAuto = win32com.client.GetObject("SAPGUI") # This line happened Error.
application = SapGuiAuto.GetScriptingEngine
The code can be executed successfully on my computer. But occasionally it fails on my friend’s computer.
Error on the second line and Error message is : com_error : (-2147221020, "Invalid syntax", None, None).
I am puzzled. The computer environment of my friend and I are similar. (win10 , SAP740 Python3). Can you give me some suggestions. Any possible reply would be greatly appreciated 🙂
‎2021 Sep 06 1:46 PM
Welcome to the SAP Community! We wanted to give you the opportunity to take the tutorial to get started in SAP Community, as it provides tips for preparing questions that draw responses from our members.
Additionally, by adding a picture to your profile you encourage readers to respond to your question. Learn more about your profile using Profile Tutorial
Thank you!
‎2021 Sep 07 7:51 AM
‎2021 Sep 07 7:51 AM