BAPIoutboundProcess

The service runs a BAPI in an SAP system. This transport service can handle both asynchronous and synchronous execution of a BAPI.

Input parameters
serverName
Optional. Alias of the SAP system to which the connection must be established. The name must match a configured RFC connection alias at SAP® ERP. If serverName is set, it overrides the value of transportParams/serverName.
transportParams
A document with the following key/value pair:
  • serverName. The SAP system alias on which to run the BAPI. The alias must match a configured RFC connection alias at SAP® ERP.
  • mode. Allows to restrict the way how the BAPI can be started.
    • no restrictions. Is run as the client requested.
    • synchronous only. Only synchronous calls are allowed, if client passes a $tid (indicating an asynchronous call) an exception is returned.
    • asynchronous only. Only asynchronous calls are allowed, if client does not pass a $tid (indicating a synchronous call) an exception is returned.
$tid
Optional. TID of the transaction.
$action
Optional. Transaction state. Specify one of the following codes:
  • 1. Default. Run.
  • 4. Confirm.
$queueName
Optional. Name of the SAP system inbound queue. Specify a value for a qRFC scenario.
objectName
Optional. Name of the business object.
bapiName
Optional. Name of the BAPI method.
Return values
A pipeline that represents the response or an exception of the run BAPI.
$metabapi
Optional. Document created when the BAPI was run. Contains the BAPI metdata (for example, the internal name, the external name and the RFC name). It also contains information about whether it is static (yes or no), dialog (yes or no), or factory BAPI (yes or no).
$abapexception
Optional. Document created if the execution of the BAPI caused one or more ABAP exceptions with severity of 3 or higher. The document contains the name, the severity, and the message attributes of the general BAPI failure. It also contains the document attributes that contain the complete collection of all exceptions that occurred during execution of the BAPI, with a detailed description and the message attributes for each exception.
$runtime
Total invocation time (ms), including processing time within SAP® ERP.
$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
A flag that indicates whether pipeline represents a request or response of a function module. Possible values are:
  • true for request.
  • false for response.