Show TOC

Mapping File for Read Table ModeLocate this document in the navigation structure

The mapping file for an RFC output adapter running in read table mode contains fieldMapping entries that specify how SAP table columns map to ESP stream columns.

You can also use the schema discovery functionality in ESP Studio to automatically create a mapping file. 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 Studio.

A sample mapping file for read table mode is located in the $STREAMING_HOME/adapters/rfc/examples/read_table directory.

Each mapping entry is defined by the <table> element which includes a name attribute that corresponds to the SAP table that you are querying. You can define multiple <fieldMapping> elements within the <mapping> element to indicate which SAP table column maps to which ESP stream column.

Here is an example of a mapping entry for a table named ZC010. This entry maps table columns FLAG and NOM to the ESP stream column Column1 and Column2 respectively:
<table name="ZC010">
	<mapping>
		<fieldMapping name="FLAG" espField="Column1"/>
		<fieldMapping name="NOM" espField="Column2"/>
	</mapping>
</table>

There is no <input> section for a read table mapping entry, and the <mapping> section does not require the parameter type elements <export>, <changing>, or <table>.