on 07-07-2005 9:58 PM
I'm running an interface developed in Visual Basic 6.0.
The source is:
Set LogonControl = CreateObject("SAP.LogonControl.1")
LogonControl.SystemNumber = Trim(data("SYSTEMNUM"))
LogonControl.Language = Trim(data("LANGUAGE")
LogonControl.Client = Trim(data("MANDANT")
LogonControl.ApplicationServer = Trim(data("APPSERVER"))
LogonControl.User = Trim(data("USER"))
LogonControl.Password = Trim(data("PASSWORD"))
Set SAPConn = LogonControl.NewConnection
SAPConn.Logon(0, True)
Set LsapFuncSAP = CreateObject("SAP.Functions")
Set LsapFuncSAP.Connection = SAPConn
Set LsapFuncRFC = LsapFuncionesSAP.Add "FUNCNAME"
LsapFuncRFC.Call
.......
I have SAP GUI 6.20 installed and the APP server is "R/3 Release 4.6C" with Oracle.
but in the line "Set LsapFuncSAP.Connection = SAPConn" generates one of this errors randomly:
"Bad variant type" or
"Internal application error"
When I make the connection to development SAP server, this interface works fine, but when I make the connection to the QA SAP server, doesn't work anymore.
I'm running this application from the same Windows 2000 Server allways...just change the SAP server I'm connecting to.
Thanks...
Miguel Aldatz
hi,Excuse me about bad variant type solved?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Resolved....
In the .trc files.... found "User XXXXXXX has no RFC authorization for function group RFC1.
change permisions and go live!!
Thanks...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.