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


Dear .Net Connector experts,

We are in the process of writing an external .NET application which accepts IDOCS from our R/3 system using the .NET Connector.

The application design calls for storing the received IDOC data in the MS SQL database prior to confirmation of successful receipt to R/3.

We have not been able to throw an exception in case our SQL storage fails. (in other words, the IDOC was NOT received successfully)

In a reply to an OSS note we received the following suggestion:

"If you need TRFC transaction support, you should not use the SAPIDocReceiver class directly, but instead inherit your own class from it. "

"SAPIDocReceiver itself inherits from SAPServer that

has all the protected virtual members "CheckTransaction",

"CommitTransaction", "ConfirmTransaction", and "RollbackTransaction"."

"Overriding these functions will give you full control on

transaction management. The default implementation in SAPServer class always report success."

Has anyone done this before?

If so, could you send an example of this code to

Thanks in advance,


Ivo Robbrecht</i>

SAP Development Leader

Southwestern/Great American Inc

Nashville, TN

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Mar 19, 2004 at 09:24 AM

    Did the samples not help that I have sent you as attachment in the OSS ticket?

    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.