Adapter for SAP 10.1 | webMethods Adapter for SAP Documentation | webMethods Adapter for SAP Installation and User’s Guide Documentation | Built-in Services | SAP Client Services | pub.sap.client:createTID
 
pub.sap.client:createTID
Call this service if 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 pub.sap.client:invokeTransaction, pub.sap.client:sendIDoc, and pub.sap.client:confirmTID.
For more information about using the fast, offline method of creating Transaction ID, see watt.sap.fastTIDCreation.
Important:
If no TID exists in the pipeline, then the pub.sap.transport.ALE:OutboundProcess service performs the function of both the pub.sap.client:createTID and pub.sap.client:invokeTransaction services. For IDocs, it is recommended that you use either the pub.sap.transport.ALE:OutboundProcess service or the call sequence of pub.sap.client:createTID and pub.sap.client:sendIDoc.
Input Parameter
serverName
Alias of the SAP system that sends the TID. This name must match a configured RFC connection alias at Adapter for SAP.
$client
Optional. Client for the session. If no client is specified, the client 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 will be 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
This service is used in tRFC client scenarios, which require a transactional ID (TID) uniquely identifying the transaction. See also pub.sap.client:confirmTID.