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:invoke
 
pub.sap.client:invoke
Invokes an RFC function module in synchronous mode 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.
$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
This service returns the outputs (exports and tables) returned by the function module.
$rfctime
Time (ms) spent within the RFC library to complete the invocation.
$runtime
Total invocation time (ms), including processing time within Adapter for SAP.
$encoding
MIME-compliant character set corresponding to the session's SAP code page.
$call
Flag indicating whether the pipeline represents a request (true) or a response (false) of a function module.
Example
This service is used when you are directly calling an RFC on an SAP system without creating an RFC adapter service. (When an RFC adapter service is used, this service is invoked implicitly.)