‎2005 Sep 16 6:18 AM
Dear experts,
VB code:
Set oFunction = CreateObject("SAP.LogonControl.1")
Set oConnection = oFunction.NewConnection
oConnection.Client = "300"
oConnection.Language = "EN"
oConnection.User = "test"
oConnection.Password = "test001"
oConnection.ApplicationServer = "111.111.12.11"
oConnection.SystemNumber = "00"
result = oConnection.Logon(0, True)
Set ofun = CreateObject("SAP.FUNCTIONS")
Set ofun.Connection = oConnection
Set func = ofun.Add("RFC_READ_TABLE")
Error sentence when running:
Set func = ofun.Add("RFC_READ_TABLE")
Error information:
"Runtime error '1001' No connection to SAP system available."
Could you help me?
Thanks and regards,
collysun.
‎2005 Sep 16 6:23 AM
What is the user type of user "test" in SAP ( Dialog user or CPIC user )???
Can you try loggong using SAPGUI with same parameters...
‎2005 Sep 16 6:30 AM
‎2005 Sep 17 1:22 AM
‎2005 Sep 17 7:48 AM
try this code
dim fns set fns = createobject("SAP.Functions")
dim conn
set conn = fns.connectionconn.ApplicationServer = "111.111.12.11"
conn.System = "DEV"
conn.user = "<user id>"
conn.password = "<pwd>"
conn.Client = "300"
conn.Language = "E"
if conn.logon(0, true) <> true
then
exit
sub
end if
dim myfunct
set myfunc = fns.add("RFC_READ_TABLE") Regards
Raja
‎2005 Sep 17 3:11 PM
‎2005 Sep 18 5:22 AM
If your question is answered , can you reward points to the helpful answers and mark the thread as answered.
Regards
Raja