cancel
Showing results for 
Search instead for 
Did you mean: 

Communicate with SAP in vb6

Former Member
0 Kudos

Does anyone know how to call a RFC in vb6? if YES, say if the RFC returns a sap table. How do I change this table into a vb6 acceptable data type. appreciate for any help. Thanks...

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

It contain one ocxtest program which successfully communicate with sap thru

function.

But when i create function in ABAP and try to execute from VB that time it gives

error "Data type is mismatch" ?

What could be error.

Yogesh

Former Member
0 Kudos

Anna,

Try re-registering the OCX files (wdtfuncs.ocx, wdtlog.ocx and librfc32.dll) with the regsvr32 command. If this doesn't solve the problem you may need to upgrade your SAPGUI so that the new OCX files are able to connect to the 6.20 system.

-c.

Former Member
0 Kudos

Thanks a lot!

Former Member
0 Kudos

Can someone please help me. I've been on it for days. I'm a beginner in interfacing VB6 with SAP 6.20. The problem is I always get an "Automation Error: The Specified module could not be found" everytime it passes this statement

"Set myVar = createobject("SAP.Functions"). I have tried it with SAP 4.2, but so far it worked. How can I make it work with SAP 6.2? Please help me. Thanks.