clientConfirmTID

The service confirms the transaction that is specified by the TID on the specified SAP system. The service must be called after a transactional start to complete a transaction on the target system.

Input parameters
serverName
Alias of the SAP system that sends the TID. This name must match a configured RFC connection alias at SAP® ERP.
$tid
Transaction ID to be confirmed.
$client
Optional. Client for the session. If no client is specified, the client that is specified in the SAP system alias settings is used.
$user
Optional. User name for the session. If no user is specified, the default user is used.
$pass
Optional. Password for the session. If the password is not specified, then the user and password is looked up in the SAP User store.
$language
Optional. Language used during the session. If no language is specified, the default language is used.

Return values

None.

Example

This service is used in tRFC client scenarios to confirm a transaction, which is run completely.
  • Invoke clientCreateTID. The service creates an SAP-conformant TID. It is necessary to have one otherwise you cannot start the function module with clientInvokeTransaction. If you obtained a TID, you must use that one to guarantee that the transaction is run one time.
  • Invoke clientInvokeTransaction. The service starts the given function module as a tRFC on the SAP system specified by serverName. The TID is passed as a parameter on this call.
  • Invoke clientConfirmTID. Confirms that the transaction is completed. Pass the same serverName and $tid value on this call.