on 12-21-2004 5:32 PM
Dear all,
how do I throw ABAP-exceptions in a generated RFC-server?
When I have an RFC-function module like the attached one in an SAP system and generate a server for this function module, how can I throw the ABAP-exception WRONG_UUID (for example in the C# code attached)?
I haven't found an rfc-server example dealing with ABAP-exceptions.
Best regards,
Willy
FUNCTION ZZZ.
*"----
""Local interface:
*" IMPORTING
*" VALUE(UUID) TYPE SYSUUID_C DEFAULT SPACE
*" EXCEPTIONS
*" WRONG_UUID
*"----
// Implementation of remote function module ZZZ
protected override void Zzz (
string Uuid)
{
// TODO: add your server code here
}
Hi Willy
If I am not mistaken, it should be ...
{
RfcAbapException ns = new RfcAbapException("WRONG_UUID", " Wrong user Id");
throw ns;
}
Not a C# guru but it should be something like that.
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 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.