clientCreateTID
The service is used when you want to obtain a transaction ID (TID, which is a GUID) that conforms to the format of SAP TIDs. The obtained TID can be used as an input value for clientInvokeTransaction, clientSendIDoc, and clientConfirmTID.
Important: If no TID exists in the pipeline, then the ALEoutboundProcess service runs
the function of both the clientCreateTID and clientInvokeTransaction services. For IDocs, you can
use either the ALEoutboundProcess service or the call sequence of clientCreateTID and
clientSendIDoc.
- Input parameters
-
- serverName
- Alias of the SAP system that sends the TID. This name must match a configured RFC connection alias at SAP® ERP.
- $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
-
- $tid
- Contains the TID.
Example
The service is used in tRFC client scenarios, which require a transactional ID (TID) uniquely identifying the transaction. See also clientConfirmTID.