[395] in sapr3-soft

home help back first fref pref prev next nref lref last post

Excel Vs VB for RFC

daemon@ATHENA.MIT.EDU (Guinn Unger)
Tue Sep 9 11:18:54 1997

To: sapr3-soft@MIT.EDU
Date: 9 Sep 1997 08:52:01 -0500
From: "Guinn Unger" <71053.2332@compuserve.com> (by way of SAP Moderator)

Let me say that I'm a novice at SAP.

I have installed the SAP RFC functions.  I can run the macros in the
AMSAMPLE.XLS that is provided as part of the installation of either 3.0d or
3.0e.  However, when I try to run the exact same code in Visual Basic 5.0,
I get an error when I hit the

	Result = R3.RFC_CUSTOMER_GET(Exception, KUNNR:="*",
CUSTOMER_T:=Customers)

statement.  The first time I try it I get an error 438 "Object does not
support this property or method".  If I try to reexecute the line I get a
-2147417851 (80010105) error which translates as "The server threw an
exception".

Anyone have any ideas why this would work in Excel, but not in VB5?

Thanks.

--
Guinn Unger
Unger Technologies
guinnunger@compuserve.com

----------------------------------------------------
comp.soft-sys.business.sap is a moderated newsgroup.
Postings are archived and available from the
Realtime USA web site at http://www.realtimeusa.com
----------------------------------------------------



home help back first fref pref prev next nref lref last post