‎2008 Jun 18 8:25 AM
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.
‎2008 Jun 18 2:07 PM
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
‎2008 Jun 19 4:38 AM
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.