on 09-30-2005 5:42 AM
Hi,
I've an RFC server coded in vb.net. Am trying to capture the exceptions raised by the server in an ABAP program. But it is giving a short dump. Can any one tell me the reason for this?
Regards,
Aravinda Sarma M.
The following is the code:
Try
SqlHeaderConnection.Open()
rsHeaderData = sqlCommand.ExecuteReader()
Catch ex As RfcAbapException
'excpError = New RfcAbapException("NOCONN", "Error in Query")
Throw ex
Finally
rsHeaderData.Close()
SqlHeaderConnection.Close()
End Try
Neither SqlHeaderConnection.Open nor sqlCommand.ExecuteReader will throw RfcAbapExceptions, but some other .NET exceptions that cannot be understood by APAP. So you need to convert the .NET-exception to an ABAP-Exception:
Try
SqlHeaderConnection.Open()
rsHeaderData = sqlCommand.ExecuteReader()
Catch ex As Exception
Throw New RfcAbapException("NOCONN", "Error in Query")
Finally
rsHeaderData.Close()
SqlHeaderConnection.Close()
End Try
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.