Skip to Content
0

VB.net logon with cutomized ini

Mar 09, 2017 at 06:01 PM

65

avatar image

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

I've a problem trying to login to SAP with a vb.net 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"...

10 |10000 characters needed characters left 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 http://sapassets.edgesuite.net/tools/SAP-Community-Tags.xlsx.

Cheers,
Matt

2
* Please Login or Register to Answer, Follow or Comment.

0 Answers