ERP Integrator V2 - Online Help
ERP Integrator V2
Questions / Feedback?

CheckId Event

Used to check if the transaction is already running or was already completed.

Syntax

[VB.NET]
Public Event OnCheckId As OnCheckIdHandler
[C#]
public event OnCheckIdHandler OnCheckId;

public delegate void OnCheckIdHandler(object sender, SapserverCheckIdEventArgs e);

class SapserverCheckIdEventArgs : EventArgs {
  string TransactionId {get;}
  bool Accept {get; set;}
}

Remarks

If TransactionMode is set to tmTransactional, the CheckId event will fire before the SAP server starts a transaction. The SAP system will supply a unique identifier in the TransactionId parameter. You are responsible storing the TransactionId and ensuring that the client system (SAP server) does not try to start the same transaction a second time. To do this simply set the Accept parameter of the CheckId event to False. This will indicate to the connecting client that the transaction is already completed, and to skip the request. If you set Accept to True the client will continue the connection, and FunctionCall will fire next.

After processing the request in the FunctionCall event the SAP system will cause the Commit event to fire. This indicates that the transaction has been completed on the SAP system's end, and that. If instead the RollBack event fires, you should roll back and undo all the changes you made when processing the transaction inside the FunctionCall event.

Finally, the ConfirmId event will fire once the transaction is completed on both sides, and the TransactionId is released. The transactional process is now completed.

Note that CheckId, Commit, RollBack, and FunctionCall will not fire unless TransactionMode is set to tmTransactional.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 2.0.6240.0