[4494] in sapr3-soft

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

BAPI\VB4.0

daemon@ATHENA.MIT.EDU (Me)
Thu Jan 13 09:55:11 2000

To: sapr3-soft@MIT.EDU
Date: 13 Jan 2000 08:49:40 -0600
From: "Me" <me@this.place>(by way of SAP Moderator <sap-request@realtimeusa.com>)
Message-Id: <85kom4$g3g@nexus.netconcepts.com>

 Could someone explain why this error is happening please with the
 GetSapObject in VB v4.0:

 "Run Time error '8800'

 An error occurred in the R/3 System while invoking Customer . NAME
 Message.Nr.:826 Workarea: OL
 R/3 error message: Object does not exist (300050, KNA1, ,)"

 I checked from "Accounting > Financial Accounting > Accounts Receivable >
 Master Records > Display" that customer 300050 exists and has a name.  My
 code is below.  Our SAP version has been newly upgraded to 4.5B

 Thanks!
me

 Private Sub Command1_Click()

 Dim oBapiControl As Object
 Dim connection As Object
 Dim oCust As Object

 Set oBapiControl = CreateObject("SAP.BAPI.1")

 ' Logon to system is ok....

         Set oCust = oBapiControl.GetSAPObject("Customer", "300050")

        If oCust Is Nothing Then
             MsgBox "failed to create"
         Else

             MsgBox oCust.Name         ' <---- error here
         End If

         MsgBox "finished"

 End Sub





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