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:invokeTransaction
 
pub.sap.client:invokeTransaction
Invokes an tRFC function module on a given SAP system.
Input Parameter
serverName
SAP system alias on which the function module will be invoked. The name must match a configured RFC connection alias at Adapter for SAP.
$rfcnamep
Name of the function module to be invoked.
$tid
Transaction this invoke is assigned to.
$queueName
Optional. Name of the SAP system inbound queue. Specify a value in case of a qRFC scenario
$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
$runtime
Total invocation time (ms), including processing time within Adapter for SAP.
$rfctime
Time (ms) spent within the RFC library to complete the invocation.
$encoding
MIME-compliant character set corresponding to the session's SAP code page.
$call
Flag indicating whether pipeline represents a request or response of a function module. Possible values are:
*true for request.
*false for response.
Example
This service is used in outbound flows and can handle both synchronous and transactional RFC calls. Therefore, it can be seen as a generic wrapper for pub.sap.client:invoke, pub.sap.client:invokeTransaction and pub.sap.client:confirmTID.