Link to home
Start Free TrialLog in
Avatar of keerthimothukuri
keerthimothukuriFlag for United States of America

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.Functions")
Set sapConnection = CreateObject("SAP.Logoncontrol.1")
Set sapConnection = sapConnection.NewConnection

sapConnection.System = "00"
sapConnection.ApplicationServer = "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.Functions")
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!!!

ASKER CERTIFIED SOLUTION
Avatar of abel
abel
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial