on 11-05-2017 6:22 AM
i am sure i opened a session and the screen stay on
SESSION_MANAGER but the code still not work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Tim,
welcome in the SAP Community.
To use your code you must open an SAP session manually. With the code
Sub szz()
Set SAPGuiAuto = GetObject("SAPGUI")
Set SAPApplication = SAPGuiAuto.GetScriptingEngine
Set SAPConnection = SAPApplication.Children(0)
Set asession = SAPConnection.Children(0)
End Sub
you want to connect explicite to the connection 0 and the session 0, which means the first session of the first connection - counting starts at zero. If you open a session to an SAP system your code should work.
Best regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.