Solved

Activex Compoenets cannot be created : SAP.Functions

Posted on 2009-05-18
1
2,674 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
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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How does CurrentUser work? 10 38
VB 6 error 5 in windows 10 but not in XP 7 63
Excel Automation VBA 19 88
RUNRMTCMD from AS/400 12 68
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
"Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

840 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