Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error In SAP VB connection

Former Member
0 Kudos

Am getting runtime error in VB . This is my VB code.

Dim sapconn, conn, conn1 As Object

Dim ok As Boolean

Private Sub Form_Load()

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

Set conn = BAPI.Connection

ok = conn.logon(Me.hWnd, False)

SAP_UP

End Sub

Private Sub SAP_UP()

conn1 = BAPI.GetSAPObject("BAPI_AP_ACC_GETBALANCEDITEMS") "ERRor

End Sub

After logging to SAP am getting Error Like this

Run time error 8792.

An internal RFC error occurs

Error Kye RFC_ERROR_SYSTEM_FAILURE

Description see RFC trace file or SAP log .

Please help me.

Regards

Prajwal K.

2 REPLIES 2

athavanraja
Active Contributor
0 Kudos

you should check the trace file to see the cause of the error.

they are generally placed in your mydocuments folder. (or search for .trc file)

Raja

0 Kudos

Thanks raja.

I saw that file, in that I got these messages

        • ERROR file opened at , SAP-REL 710,0,0 RFC-VER 3 880476 MT-SL

T:852 Error in program 'vb6': <* RfcCall [1] : returns 18:RFC_INVALID_HANDLE

T:852 Error in program 'vb6': <* RfcCall [1] : returns 18:RFC_INVALID_HANDLE

T:852 Error in program 'vb6': <* RfcCall [1] : returns 18:RFC_INVALID_HANDLE

T:852 Error in program 'vb6': <* RfcCall [1] : returns 18:RFC_INVALID_HANDLE

but am not getting what is wrong in my code and how to solve that.

Please help me. Thanks a lot once again raj.