keerthimothukuri
asked on
Activex Compoenets cannot be created : SAP.Functions
HI
I am working on one VB script where i have to get data from SAP RFC Function.
Here is my code to test the SAP connection....i get the following error whenever i try to run the beloe program. Can anyone tell me the DLL's i need to have inorder to test my SAP connection .
Note: I dont have SAP GUI in system, but i want to connect to SAP.
Public theFunc
Public con
Public sapObj
Dim returnFunc
Set sapObj = CreateObject("SAP.Function s")
Set sapConnection = CreateObject("SAP.Logoncon trol.1")
Set sapConnection = sapConnection.NewConnectio n
sapConnection.System = "00"
sapConnection.ApplicationS erver = "xx.xx.xx.xxx"
sapConnection.client = 300
sapConnection.user = "TMRAHIL"
sapConnection.Password = "ENGLAND1"
sapConnection.language = "EN"
'************************* ********** ***
'Log On to the SAP System
'************************* ********** ***
Set functionCtrl = server.CreateObject("SAP.F unctions")
retcd=sapConnection.Logon( 0,true)
If RetCd = False Then
Response.write "SAP Logon Failed."
Response.End
else
Response.write "SAP Logon Succeeded."
end if
Thank You so much!!!
I am working on one VB script where i have to get data from SAP RFC Function.
Here is my code to test the SAP connection....i get the following error whenever i try to run the beloe program. Can anyone tell me the DLL's i need to have inorder to test my SAP connection .
Note: I dont have SAP GUI in system, but i want to connect to SAP.
Public theFunc
Public con
Public sapObj
Dim returnFunc
Set sapObj = CreateObject("SAP.Function
Set sapConnection = CreateObject("SAP.Logoncon
Set sapConnection = sapConnection.NewConnectio
sapConnection.System = "00"
sapConnection.ApplicationS
sapConnection.client = 300
sapConnection.user = "TMRAHIL"
sapConnection.Password = "ENGLAND1"
sapConnection.language = "EN"
'*************************
'Log On to the SAP System
'*************************
Set functionCtrl = server.CreateObject("SAP.F
retcd=sapConnection.Logon(
If RetCd = False Then
Response.write "SAP Logon Failed."
Response.End
else
Response.write "SAP Logon Succeeded."
end if
Thank You so much!!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.