The SAP Remote Function Calls (RFC) adapter is both an input and output adapter. The RFC Input adapter executes RFCs to import data from SAP systems into Event Stream Processor, while the RFC Output adapter exports data from Event Stream Processor into SAP systems.
Both adapters include an adapter configuration file and a mapping file. Use the adapter configuration file to set up the RFC Input and Output Transporter modules, the ESP Publisher and Subscriber modules, as well as establish a connection to Event Stream Processor. Use the mapping file to specify mapping definitions for RFCs, how ESP stream columns map to RFC parameters, how SAP table columns map to ESP stream columns, or how columns of the flattened data result set map to ESP streams.
You can either manually create a mapping file or use the schema discovery functionality in ESP Studio to automatically create one. See Discovering Schema and Creating a Mapping File for the SAP RFC Adapter in the Studio Users Guide for detailed instructions on creating a mapping file in ESP Studio.
Batching makes sense for an RFC that builds up table parameters from ESP column data so as to cut down the number of RFC calls involved. If data is mapped to non-table type parameters, values are overwritten as new ESP data rows are processed, so only use batching when data is treated as data rows in a table parameter.
The RFC Input and Output adapters report custom statistics. Enable the time granularity option in the project configuration (ccr) file to get these statistics reported by the _ESP_Adapter_Statistics metadata stream.