--- title: "Loading RFC structure from SAP repository" slug: "intro-sap-loading-templates-rfc-repository" updated: 2026-07-29T13:50:46Z published: 2026-07-29T13:50:46Z canonical: "docs.lobstersoftware.com/intro-sap-loading-templates-rfc-repository" --- > ## 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. # Loading RFC structure from SAP repository Here the procedures for the source and target structure are different. ## For the source structure The source structure is created in Phase 1 of a Profile with a time-driven Input agent of the "SAP" type. When importing an RFC structure into the source structure, the **export structure** of the RFC is imported, that is, its output parameter. The following screenshot shows the source structure that was created for the function module "RFC_READ_TABLE" by using the "Create structure" button (see [SAP (cron input agent)](/v1/docs/en/profiles--entry-tab-2-cron-sap-tab-1)). For the naming of nodes and fields of the source structure see "Naming conventions for SAP RFCs" below. ![images/download/thumbnails/201680168/866-version-1-modificationdate-1748314473828-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/866-version-1-modificationdate-1748314473828-api-v2.png) ## For the target structure An RFC target structure is created in Phase 3 of a profile. See the corresponding subsection in section [Loading SAP templates](/v1/docs/en/intro-sap-loading-templates). When importing an RFC structure into the target structure, the **import structure** of the RFC is imported, that is, its input parameter. The following figure shows the dialogue for importing an RFC structure from the repository of an SAP system (connected via [SAPConnectionService](/v1/docs/en/sap-connection-service) ) into the target structure. ![images/download/attachments/201680168/873-version-2-modificationdate-1748330555440-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/873-version-2-modificationdate-1748330555440-api-v2.png) (1) **SAP alias:** The alias that specifies from which SAP system the RFC structure should be imported. All aliases that have been configured in the [SAP service](/docs/en/sap-connection-service) can be selected (see configuration file *./etc/sap.xml*). (2) **Refresh structure**, **Use variables:** See the corresponding items in section [Loading internal IDoc structure](/v1/docs/en/intro-sap-loading-templates-idoc-lobster). ## Naming conventions for SAP RFCs The naming convention for the node and field names can be seen in the source structure screenshot above. The nodes and fields of the structure receive the name prefix *SAP_Table_* for tables and *SAP_Fld_* for the corresponding fields. So if you have an RFC field *XYZ*, for example, it corresponds to a field in the structure with the name *SAP_Fld_XYZ*. If this field is located in a node named *SAP_Fields*, it is considered the IMPORT field of the RFC. If it is in a node *SAP_Struct_ABC*, it is transferred as component *XYZ* of the IMPORT structure *ABC* (in ABAP *ABC-XYZ*). If the field is in a node *SAP_Table_STUVW*, it is transferred as component *XYZ* of the table *STUVW*. When you import the structure online from the SAP system, the names of the fields and nodes are created according to this naming convention. **NOTE:** The [call-sap-rfc()](/v1/docs/en/basic-call-sap-rfc) function uses these conventions as well. Occasionally, an RFC uses field, structure, or table names with a namespace prefix. Such names contain the slash character (/), which is not allowed in field and node names in the profile. The slash is therefore converted to an underscore (_). But this will violate the naming convention. In this case, the RFC field name must be in the description of the field with the prefix *SAP:* to establish the relationship to the name in the RFC. When importing an RFC structure, the description field is filled accordingly if it is a domain name. **Example:** If the SAP name is */XYZ0/ABC*, the value *SAP:/XYZ0/ABC* in the description field stores the original SAP name of the field. Input: An input agent receives the data. It can work either as event based (e.g. FTP upload) or scheduled (cron). A profile is the central configuration unit in the Lobster Data Platform. It receives data, processes it, and forwards it. Configuration is done graphically, with no programming required. The input agent receives data in Phase 1 and starts a job for further processing. It works either as event based (passively waits for data) or scheduled (actively fetches data). Mapping: Rules transfer the data from the source structure to the target structure. This is the core of the profile.