Solved

Activex Compoenets cannot be created : SAP.Functions

Posted on 2009-05-18
1
2,753 Views
Last Modified: 2013-12-08
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!!!

0
Comment
Question by:keerthimothukuri
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 39

Accepted Solution

by:
abel earned 500 total points
ID: 24419705
What you need is the wdtfuncs.ocx. It comes with the SAP frontend, I understand from posts on the internet. That means that you at least need to buy/download/install the SAP frontend for this to work.

This post is about how to set some references
This post gives some examples
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question