Skip to Content
author's profile photo Former Member
Former Member

DOTNET RFC-Server: Throwing ABAP-exceptions

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

}

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2004 at 08:30 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.