--- title: "RFC interface definition as XML file" slug: "intro-sap-rfc-in-data-providing-interface" updated: 2026-07-29T12:43:55Z published: 2026-07-29T12:43:55Z canonical: "docs.lobstersoftware.com/intro-sap-rfc-in-data-providing-interface" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # RFC interface definition as XML file The interface definition is done in an XML file whose path is specified in the listener configuration in parameter *xmlFile*. The structure of the XML file is checked via the DTD file *sap_rfc_configure_1_0.dtd*, which must be available under the path *./etc/dtd/*. The root element is called *RFC* and the name of the RFC is expected in the *name* attribute. It must match the *functionName* in the listener configuration. ```xml ``` Section ** contains the definition of the - import parameters as simple fields or "flat" structures, - export parameters as simple fields or "flat" structures, - table parameters and - exceptions. We assume that the basic concept of an SAP RFC interface (ABAP) is known. All parts of the interface are optional. ## IMPORT parameters ```xml ``` ## EXPORT parameters ```xml ``` ## TABLE parameters ```xml
``` Every *TABLE* definition contains exactly one *ROW*. One can imagine the *ROW* as a nameless structure. The values of a table then form a list of such composite structure values. If multiple tables are defined with the absolute same structure, you should use the same *refname*. The *refname* can be created by using the prefix *REF_* and *name*. The *tabletype* can have the values *in*, *out* or *inout*. **NOTE:** The class *DataWizardForwardRequestListener* can only have the value *in*. ## Exceptions ```xml ``` ## Field definitions ```xml ``` | Field type | Meaning | | --- | --- | | BCD | Binary number format with decimal places, *length* and *decimals* are mandatory. | | BYTE | Binary data (byte sequence), *length* is necessary. | | CHAR | Character sequence with fixed length, *length* is necessary. | | DATE | Date without time, format *yyyyMMdd*, *length=8*. | | FLOAT | Floating point number, *length* and *decimals* are mandatory. | | INT | 4 byte integer. | | INT1 | 1 byte integer (careful). | | INT2 | 2 byte integer (careful). | | NUM | Numeric value as character string, *length* is necessary. | | STRING | Character string with variable length, not for *STRUCTURE* or *TABLE*. | | TIME | Time without date, format *HHmmss*, *length=6*. | For types where *decimals* has no meaning, the value is ignored. The types *INT1* and *INT2* should not be used because the JCo will report an incorrect length. Use *NUM* with *length* instead. ## Structure definitions Structures in the import and export parameters are "flat" structures, which means that a structure only contains fields, but no further structures. ```xml ``` Similar to the table definitions, multiple structures with absolutely the same structure should use the same *refname*. ## Structure of the example RFC "MY_RFC" The example defines the function module "MY_RFC" that only expects one numerical value as import field "NUMERIC_ID". ```xml ``` ## Note about data types in "STRUCTURE" and "TABLE" The term "flat structure" refers to a composite data type composed of a sequence of simple fields. Each individual field must have a specific field length. The variable length type *STRING* is therefore not allowed for structures. A *TABLE* parameter is actually a list of rows, with each row representing a flat structure. Therefore, the use of the type *STRING* is also inadmissible in the *TABLE* definition. On the SAP side, we always recommend the use of repository types. The user has to ensure conformity on the Lobster side by using a suitable data type (preferably *CHAR* or *NUM*) with the length specified as defined in the SAP repository. **Example:** If you use the repository type *CHAR13* in SAP for an EAN, the field on the Lobster side has to be defined with the following attributes. | .... type=“CHAR“ length=“13“ .... | | --- | Fields in *STRUCTURE* and *TABLE* definitions should have the same order as on the Lobster side. XML (Extensible Markup Language) is a structured text format for storing and exchanging data. Content is enclosed within freely definable tags such as `<order>`. XML is human-readable, machine-processable, and platform-independent. In the Lobster Data Platform, you can receive, parse, and generate XML data. Remote Function Call. SAP protocol for the synchronous call of function modules in an SAP system. The Lobster Data Platform can read and write data from SAP via SAP RFC. The external metadata storage of a connected SAP system. The Lobster Data Platform reads IDoc types, segment types and RFC structures from this. The SAP system is accessed via the `SapConnectionService`.