Connection to SAP RFC
The SAP RFC connector reads explicitly selected transparent tables, DDIC database views and CDS view entities from an SAP system through the SAP application server (AS ABAP). It needs no database login and no inbound firewall port. DQC requires the S_TABU_NAM display authorization for each source, SAP's DDIC display authorization check applies to tables and database views, and CDS access controls remain effective.
The SAP RFC connector is available on request and is not enabled by default. Contact us to enable it; DQC then provides the SAP RFC runner for your DQC Proxy host and plans the setup with you.
For an overview of all ways to bring SAP data into DQC, see Connecting to SAP systems.
How it works
The connection to SAP runs from inside your network:
DQC Platform <-- TLS tunnel, outbound 443 -- DQC Proxy + SAP RFC runner -- RFC, TCP 33<NN> --> SAP application server
(your host, your network)The DQC Proxy opens an outbound, TLS-encrypted tunnel to DQC. No inbound firewall port is needed.
Next to the proxy runs the SAP RFC runner. It uses the SAP NetWeaver RFC SDK that you download from SAP, logs on to your application server with a dedicated communication user and calls the function modules listed below.
The DQC Platform sends read requests through the tunnel to the runner and receives the results. It never connects to the SAP gateway port itself, and it can only reach the SAP systems you allow on the runner.
DQC does not ship, host or run SAP software.
The runner calls exactly these function modules:
Function module | Type | Purpose |
|---|---|---|
| SAP standard | Connection test |
| SAP standard | Confirms which system and client answered |
| SAP standard | Reads the function interfaces before the first call (used by the SAP NetWeaver RFC SDK) |
| DQC, remote-enabled | Checks the component version, system ID and client |
| DQC, remote-enabled | Searches authorized sources by technical-name prefix |
| DQC, remote-enabled | Returns fields, keys and a schema fingerprint of one approved source |
| DQC, remote-enabled | Returns one bounded block of rows after a given key |
What this means for your SAP system:
Only approved sources. DQC reads only sources that your data owner has approved by exact technical name and that are granted in the communication user's role. DQC never lists the whole Dictionary: a search reads only the Dictionary entries that start with the prefix you enter and returns only sources the user may read. There is no full-system extraction.
Only selected columns. Within each source, DQC reads the columns you select, plus the key fields it needs to read in blocks. If you select no columns, DQC reads all supported columns.
Bounded load. Rows are read in compressed blocks of at most 5,000 rows per call (default). An optional execution window per source (for example
22:00-04:00 Europe/Berlin) stops further reads when it closes. An interrupted extraction resumes from its last saved block where possible.When DQC reads from SAP. DQC keeps the last complete extraction of each source and reuses it for up to 24 hours (default). A refresh or a check after that period reads the source again in full; there are no delta loads. Before DQC uses a source, it checks the source's authorization and structure in SAP with one short call, also outside the execution window. Outside the execution window DQC reads no rows and keeps using the last complete extraction.
Where the data is kept. The DQC component creates no tables and holds no data in SAP. DQC stores the extracted columns in the DQC Platform, where the rules run on them. Each new extraction replaces the previous one, and deleting the connector deletes the stored data.
Licensing
SAP licenses its connectors, including the SAP NetWeaver RFC SDK, as part of your SAP solution license at no additional fee, and does not allow anyone to redistribute them. That is why you download the SDK yourself and it runs on your own host, under your SAP license. This is the same model SAP integrations commonly use, for example Microsoft's self-hosted integration runtime for SAP in Azure Data Factory or Workato's on-premise agent.
SAP also requires every user that accesses SAP through a connector to be licensed. Please check the communication user DQC logs on with, and indirect or digital access in general, with your SAP license manager.
Task | You | DQC |
|---|---|---|
SAP licenses (SDK, communication user, indirect or digital access) | Under your SAP contract | None |
Download the SAP NetWeaver RFC SDK from SAP for Me | Yes | None |
DQC Proxy and SAP RFC runner | Run them on your host, set the allowlists | Provides and updates both |
DQC ABAP component | Create and transport it | Provides the reviewed source |
Communication user and role | Create them | Provides the role definition |
Setup in five steps
Set up the DQC Proxy and the SAP RFC runner on one host and allow your application server on the runner.
Download "SAP NW RFC SDK 7.50 for Linux on x86_64" from SAP for Me and copy the ZIP onto the appliance or link into the pod (k8s, docker).
Install the DQC ABAP component
Z_DQC_RFCin your development system and transport it to production.Create the communication user and its role.
In DQC, create the SAP RFC connector, select your DQC Proxy and run the connection test.
The sections below describe each step.
Prerequisites
Requirement | Detail |
|---|---|
Application Server ABAP | On-premise or private cloud |
SAP_BASIS 7.54 or higher | In practice S/4HANA 1909 or later. SAP ECC 6.0 (up to EHP 8, SAP_BASIS 7.50) and S/4HANA 1809 and earlier (SAP_BASIS 7.53 and lower) are not supported. The development system needs the same release floor |
Unicode system | Only Unicode systems are supported (every SAP_BASIS 7.54 system is Unicode) |
One client per connector | DQC reads only in the logon client; cross-client reads are disabled by design |
Development system | An ABAP development system in the same transport landscape, to create and transport the DQC component |
Approved source list | The exact technical names of the first sources, approved by your data owner. They are needed to build the role |
Proxy host | Linux on x86_64 (VM, Docker or Kubernetes) with 2 vCPU and 2 GB RAM, outbound HTTPS (443) to |
SAP for Me access | An S-user with authorization to download software, to download the SDK |
Supported sources are active transparent tables, DDIC database views and CDS view entities without parameters, with supported field types and a usable key for reading in blocks. CDS view entities require ABAP 7.55 or later.
Step 1: Set up the DQC Proxy and the SAP RFC runner
Install the DQC Proxy as described in Connect via DQC Proxy. When SAP RFC is enabled for you, DQC provides the SAP RFC runner for the same host: as a package with a system service for a VM, or as a container image for Docker and Kubernetes.
VM: the runner runs as a service next to the proxy.
Docker: the runner container shares the network of the proxy container (
--network container:dqcproxy).Kubernetes: the runner is a second container (sidecar) in the proxy pod.
Configure two allowlists:
Setting | Value | Meaning |
|---|---|---|
Proxy allowlist | add | The proxy may forward DQC's requests to the runner on the same host. The runner listens only on this local address |
Runner allowlist | for example | The application servers the runner may log on to, as |
The SAP gateway port never goes into the proxy allowlist: DQC reaches SAP only through the runner.
The runner connects to the application server directly, on the RFC gateway port 33<NN>, where <NN> is the instance number (for example 3300 for instance 00). Make the application server's logical host name resolvable on the proxy host. Message server load balancing (logon groups), SAProuter and SNC are currently not supported. Without SNC, SAP does not encrypt the RFC connection, so place the proxy host in a trusted network segment close to the application server.
If the DQC Platform runs in your own private cloud or on-premise, it reaches the application server directly and uses your SDK there. See Private cloud & on-premises deployments.
Step 2: Install the SAP NetWeaver RFC SDK
In SAP for Me, open the Software Download Center and download "SAP NW RFC SDK 7.50 for Linux on x86_64" (the latest patch level).
Give it to the runner:
VM: copy the ZIP unchanged into
/var/lib/dqc-sap-rfc/inbox, for example with WinSCP orscp. The runner checks the file and installs it by itself.Docker or Kubernetes: link the SDK into the pod: mount the extracted SDK read-only at
/opt/sap/nwrfcsdk, or mount the ZIP into/var/lib/dqc-sap-rfc/inbox.
To update the SDK later, copy or mount the new ZIP the same way. Running sessions finish with the old version.
Step 3: Install the DQC ABAP component
DQC delivers the ABAP source code with a machine-readable manifest, checksums and an installation and acceptance guide. DQC does not deliver a transport request: your SAP team creates the objects in its own development system and moves them through its normal change process.
The component consists of 13 objects in the customer namespace:
Function group
Z_DQC_RFCwith the four remote-enabled function modulesZ_DQC_PING,Z_DQC_GET_CAPABILITY,Z_DQC_SEARCH_TABLESandZ_DQC_FETCHEight DDIC structures (
ZDQC_S_*). They are structures, not database tables
Important:
Keep the object names. The runner calls the modules by name and the role grants the function group by name
Put nothing else into function group
Z_DQC_RFC: the role grants the whole groupTransport all 13 objects together. A partly imported component passes the connection test and fails when data is read
Run ATC with your usual check variant for classic ABAP. The installation guide lists the expected findings and their background
Step 4: Create the communication user and role
All steps take place in the target client.
User (SU01): create a dedicated user of type Communication (for example
DQCRFC), one per DQC environment that connects to this system (for example one for test and one for production). Never a dialog user, neverSAP*orDDIC, never shared with another integration. Hand the password over through your secret process; it is entered once into the encrypted DQC connector configuration.Role (PFCG): create exactly one single role (for example
Z_DQC_RFC_READ) with manually maintained authorization data, no menu and no transactions. The authorization values are listed in the table below. Assign no other role or profile to the user.Profile and user master comparison: generate the profile, assign the role to the user and perform the user master comparison. A generated but uncompared profile is not effective at runtime; this is the most common cause of "the role looks right, but the call fails".
# | Authorization object | Field | Value |
|---|---|---|---|
1 |
|
|
|
|
| ||
|
| ||
2 |
|
|
|
|
| ||
|
| ||
3 |
|
|
|
| One exact technical name per approved source, upper case, no wildcard |
Two details that are often set up incorrectly:
The two
S_RFCentries must be separate authorizations. One authorization with bothRFC_TYPEvalues would grant every combination of both listsS_TABU_NAMis the allowlist the whole model rests on.S_TABU_DIScannot replace it. Do not grantS_TABU_DISwith*,S_TABU_CLI,S_DEVELOP,SAP_ALLorSAP_NEW
Not needed: no SM59 destination, no gateway reginfo or secinfo entry, and no authorizations for the Dictionary function groups (SDIFRUNTIME, SDIF, SVIW) or the tables DD02L, DD03L, DD25L or DDDDLSRC. If Unified Connectivity (UCON) is active in the target client, add the four Z_DQC_* function modules and, where not already assigned, RFC_PING, RFC_SYSTEM_INFO and RFC_METADATA_GET to the responsible communication assembly.
To add a source later, add its exact name to S_TABU_NAM, regenerate the profile, perform the user master comparison and select the source in DQC. No new ABAP code is needed.
Step 5: Create and test the connector in DQC
Go to the Data Connectors screen, choose SAP RFC and fill in:
Field | Example | Description |
|---|---|---|
Name |
| Any internal name for this connection |
SAP application server |
| Logical host name of the application server, as the proxy host resolves it |
System number |
| Instance number of the application server |
Expected system ID |
| SAP system ID. DQC stops if a different system answers |
Client |
| The client DQC logs on to and reads from |
User |
| The communication user from step 4 |
Password | Password of the communication user | |
Logon language |
| Language of the logon session |
DQC Proxy | your proxy | The proxy whose SAP RFC runner connects to SAP |
Run the connection test. It checks the whole path in order and names the first step that fails: the proxy is online, the runner answers, the SDK is installed, the application server is in the runner's allowlist, SAP accepts the logon for the expected system and client, and Z_DQC_PING reports the expected component version.
Then add the sources:
Enter at least two leading characters of a technical name (for example
MARA) and load the matching sources. DQC only finds sources that the communication user is authorized to read. If more than 100 sources match, DQC asks for a longer prefix.Select a source and preview its extraction plan; the preview loads the available columns. Select the columns to extract and set the agreed row ceiling, rows per RFC call and execution window. By default a source may have at most 1,000,000 rows. A source with more rows than its ceiling fails instead of being loaded partially; contact DQC if a source needs a higher ceiling.
Optionally enter the expected number of rows to get estimated call and data volume figures (the preview does not count the rows in SAP). Preview the plan again after changing settings, review the limits and save.
When the connector is saved and before every refresh, DQC checks each selected source again. If a source is no longer authorized or available, the refresh stops before any data in DQC is changed.
Finally, verify the authorization model: search for a source that is not in the role (it must not appear), and run the first load of an approved source inside the agreed execution window.
Troubleshooting
Error code | Meaning | What to check |
|---|---|---|
| The runner or the application server could not be reached | The proxy is online and |
| SAP RFC is not enabled, or the runner cannot serve the connection | The error message names the cause: install the SDK (step 2), add the application server to |
| SAP rejected the logon | Client, user and password, lock status and validity in SU01 |
| A different system or client answered | Expected system ID and client against the reached system |
| A required function module may not be called | The |
| A source may not be read | The exact source name in |
| No supported source is authorized | At least one exact source name in |
| The source does not exist or is inactive | The name and active version in SE11 or ADT |
| The source type is not supported | Use a transparent table, a DDIC database view or a CDS view entity without parameters |
| A selected source is no longer available | Role, profile, user master comparison, object activation and CDS access control changes |
| The search matched too many sources | Enter a longer technical-name prefix |
| An extraction exceeded a safety limit, for example the row ceiling of a source | Expected rows and row ceiling of the source, number of selected columns; contact DQC if the source needs a higher ceiling |
| DQC stopped reading because the execution window of the source is closed | Execution window and time zone of the source; start the refresh inside the window |
| The SAP system reports a release below SAP_BASIS 7.54 | SAP_BASIS release (System, Status); the connector needs 7.54 or higher |
| SAP returned an unexpected response | All 13 DQC objects are active and identical to the delivered sources, and |
If SU53 names RFC_GET_FUNCTION_INTERFACE or DDIF_FIELDINFO_GET, do not add them to the role. The DQC connector reads function metadata through RFC_METADATA_GET; contact DQC support instead.
Notes
DQC only reads; the component offers no function that writes to SAP
The runner receives the communication user's password for each session through the encrypted tunnel. It keeps it only for that session, in memory and in a file that only the runner can read, and deletes it when the session ends. It never writes it to a log
Agree row limits and execution windows with your SAP Basis team before the first full load
Learn more: Connecting to SAP systems, Connect via DQC Proxy, Connection to SAP HANA, Supported data sources