Skip to Content
author's profile photo Former Member
Former Member logon with cutomized ini

Hi everybody.
First of all sorry for my english :)

I've a problem trying to login to SAP with a script.
The script works well with the default ini file, but I need to launch the logon specifying a secondary ini file. I've read many post about it, one of them suggested to add the line of the custom ini to the default one. The problem is that my company default ini file is on a server and I cannot modify it.

Is there a way to get around it ? I've tried everything without success...

The script I use is the following:

SapApp = CreateObject("Sapgui.ScriptingCtrl.1")
SapGui = GetObject("SAPGUI")
SapApp = SapGui.GetScriptingEngine
SapConn = SapApp.OpenConnection("Area Mercato", True)
SapSession = SapConn.children(0)

The script fail to open the connection 'cause there is not "Area Mercato"...

Add comment
10|10000 characters needed characters exceeded

  • Hi Marco,

    Welcome to the SAP Community!

    I moved your question from "Logging of UI SAP GUI for Windows" to "SAP Gateway for Microsoft" as I believe this latter is more relevant to connecting .NET applications to SAP systems. There might still be a better tag for this, perhaps in one of the development tags, but nevertheless this should be closer to what you're looking for than your original tag. Choosing the right tag is important in order to get your question in front of people who may actually be able to help. You can find a complete list of available tags at


0 Answers