Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

How to login SAP without single signon through

Former Member
0 Kudos

How to login SAP without single signon through, i have used below code but got below err msg can you able to help on this.

Error message:

An unhandled exception of type 'System.Exception' occurred in Microsoft.VisualBasic.dll

Additional information: Cannot create ActiveX component.

Code used:

Dim application AsObject

Dim SapGui AsObject

Dim connection AsObject

Dim session AsObject

application = CreateObject("SAPGUI.ScriptingCtrl.1")

SapGui = GetObject("SAPGUI")

application = SapGui.GetScriptingEngine

connection = application.OpenConnection("**", True)

session = connection.children(0)

session.findById("wnd[0]/usr/txtRSYST-BNAME").text = "**"

session.findById("wnd[0]/usr/pwdRSYST-BCODE").text = "**"



Active Contributor
0 Kudos

Hi Nagarajan.

1. Could you refer the Link -

2. You can use the .Bat or .CMD file to logon SAP system.