Invoking BAPI/RFCs Using Transactional Semantics in the SAP System
BAPI/RFCs can be invoked using transactional semantics in the SAP system.
In case of exceptions (network outages or system failures) in SAP while the call is being executed, the transactional semantics in SAP ensures data consistency and exactly-once execution.
Transactional RFCs (tRFCs) are always executed as one-way invocations and are best suited for transferring transactional data into SAP in real-time. To execute a BAPI/RFC in transactional mode, the BAPI/RFC transaction has to be downloaded and saved to the adapter configuration as a one-way operation.
Any one-way Request-Response Service service can be executed as a tRFC in SAP. To execute a one-way BAPI/RFC as a tRFC, each invocation of the BAPI/RFC have to be accompanied by userClosure information, as defined in the RFCCLOSURE class under /tibco/public/classes/ae/SAPAdapter40/RFCCLOSURE.