The SAP ODP plugin enables bulk data integration from SAP applications with BigQuery or other supported target systems using Cloud Data Fusion. The plugin has the following key features:
- Uses SAP ECC, SAP S4/HANA, or SAP BW as a source system
- Uses SAP CDC (Change Data Capture) to track and extract new and delta data in the data sources
- Uses batch extraction mode
- Supports SAP DataSources and ABAP CDS views as data sources
Supported software versions
Software | Versions |
---|---|
SAP S4/HANA | SAP S4/HANA 1909 and later |
SAP ECC | SAP ERP6 NW 7.31 SP16 and later |
SAP JCo | SAP JCo version 3.0.20 and later |
Cloud Data Fusion | 6.3 and later |
For more information about SAP on Google Cloud, see the Overview of SAP on Google Cloud .
Before you begin
Set up the following systems and services that are used by the SAP ODP plugin:
- Configure the SAP ERP system
.
This process includes the following steps:
- Install the SAP Transport files.
- Set up the required SAP authorizations and roles.
- Set up the SAP Java Connector.
-
Deploy the ODP plugin in Cloud Data Fusion .
- Important: choose a plugin version that's compatible with the Cloud Data Fusion version.
- If you upgrade the version of your Cloud Data Fusion instance or plugin, evaluate the impact of the changes to the pipeline's functional scope and performance.
-
Establish RFC connectivity between Cloud Data Fusion and SAP.
- Ensure that communication is enabled between the Cloud Data Fusion instance and the SAP server.
- For private instances, set up VPC network peering .
- Both the SAP system and the Cloud Data Fusion instance must be in the same project.
Configure the plugin
- Go to the Cloud Data Fusion web interface and click Studio.
- Check that Data Pipeline - Batchis selected (not Realtime).
- In the Sourcemenu, click SapODP. The SAP ODP node appears in your pipeline.
- To configure the source, go to the SAP ODP node and click Properties.
-
Enter the following properties. For a complete list, see Properties .
- Enter a Labelfor the SAP ODP node—for
example,
SAP ODP tables
. -
Enter the connection details. You can set up a new, one-time connection, or an existing, reusable connection.
New connection
To add a one-time connection to SAP, follow these steps:
- Keep Use connectionturned off.
-
In the Connectionsection, enter the following information from the SAP account in these fields:
- In the Reference namefield, enter a name for the connection that identifies this source for lineage.
- In the SAP clientfield, enter the client name of a specific instance or environment within SAP. An SAP administrator can provide the client name.
- In the SAP languagefield, enter an SAP logon language. The default is EN(English).
-
Select one of the following Connection types.
- Direct (via SAP Application Server). If you choose this default type, enter information in the following fields: SAP application server host, SAP system number, and SAP router.
- Load balanced (via SAP Message Server). If you choose this type, enter information in the following fields: SAP Message Server host, SAP Message Server service or port number, SAP System ID (SID), and SAP logon group name.
-
In the Contextfield, select the type of data source you're using.
-
In the SAP ODP source namefield, enter the name of the data source you're using.
-
In the Extract typefield, select the type of data extraction. The default is Full (all data).
-
Provide the SAP credentials: ask the SAP administrator for SAP logon usernameand Password.
-
In the JCo Library Cloud Storage pathfield, enter the SAP Java Connector (SAP JCo) path in Cloud Storage that contains the SAP JCo library files you uploaded.
-
To generate a schema based on the metadata from SAP that maps SAP data types to corresponding Cloud Data Fusion data types, click Get schema. For more information see, Data type mappings .
-
Optional: to optimize the ingestion load from SAP, enter information in the following fields:
- In the SAP ODP subscriber namefield, identify the subscriber for the data extraction from a valid DataSource.
- Using Filter optionslets you extract records based on selection conditions.
- In the Number of splitsfield, you can create partitions to extract data records in parallel, which improves performance. The number of splits can affect SAP work processes and must be selected carefully.
- In the Package sizefield, specify the number of records to extract in a Single SAP network call. The package size impacts performance and available resources and must be selected carefully.
Reusable connection
To reuse an existing connection, follow these steps:
- Turn on Use connection.
- Click Browse connections.
-
Click the connection name.
If a connection doesn't exist, to create a reusable connection, follow these steps:
- Click Add connection > SapOdp.
- On the Create a SapOdp connectionpage that opens, enter a connection name and description.
- In the SAP clientfield, enter the client name of a specific instance or environment in SAP. An SAP administrator can provide the client name.
- In the SAP languagefield, enter an SAP logon language. The default is EN(English).
-
Select one of the following Connection types.
- Direct (via SAP Application Server). If you choose this default type, enter information in the following fields: SAP application server host, SAP system number, and SAP router.
- Load balanced (via SAP Message Server). If you choose this type, enter information in the following fields: SAP Message Server host, SAP Message Server service or port number, SAP System ID (SID), and SAP logon group name.
-
In the SAP ODP source name, enter the ODP DataSource name from SAP.
-
Provide the SAP credentials: ask the SAP administrator for the SAP logon usernameand Passwordvalues.
-
In the JCo Library Cloud Storage pathfield, enter the SAP Java Connector (SAP JCo) path in Cloud Storage that contains the SAP JCo library files that you uploaded.
-
In the Wait timefield, enter a time to wait (in seconds) before the next retry—for example,
60
. -
In the Retry countfield, enter the maximum number of retry attempts—for example,
3
. -
Optional: in the Additional SAP connection propertiesfield, enter key-value pairs that must override the SAP JCo defaults.
-
Click Create.
- Enter a Labelfor the SAP ODP node—for
example,
Properties
00
.PUBLIC
.2LIS_02_ITM
).- Full (all data): extracts all available data.
- Sync (automatic selection based on previous execution): determines whether full, delta (incremental), or recovery (recover data from last execution) mode should be run, based on the previous execution type and status available in SAP. It extracts full data in the initial pipeline execution (ODP mode F) and changes data in subsequent pipeline executions (ODP modes D, R).
- A maximum of 32 characters, without spaces
- Contain only
a
toz
,A
toZ
,0
to9
,_
, or/
- Unique for different pipelines extracting data from the same SAP DataSource
Filter options are lists of metadata field names and their value pairs. They define the filter condition to apply when reading data from an SAP DataSource. Only records that satisfy the conditions are extracted.
The filter key corresponds to a field in the schema. It must be of a simple type (not
ARRAY
, RECORD
, or UNION
). Example usage:Field name:
MTART
Value:
FERT
Filter options are lists of metadata field names and their value pairs. They define the filter condition to apply when reading data from an SAP DataSource. Only records that satisfy the conditions are extracted.
The filter key corresponds to a field in the schema. It has the format low AND high. Example usage:
Field name:
ERDAT
Low value:
2023-11-01
High value:
2023-11-30
Filter options are lists of metadata field names and their value pairs. They define the filter condition to apply when reading data from an SAP DataSource. Only records that satisfy the conditions are extracted.
The filter key corresponds to a field in the schema. It must be of a simple type (not
ARRAY
, RECORD
, or UNION
). Example usage:Field name:
MATNR
Value:
10008
Filter options are lists of metadata field names and their value pairs. They define the filter condition to apply when reading data from an SAP DataSource. Only records that satisfy the conditions are extracted.
The filter key corresponds to a field in the schema. It must be of a simple type (not
ARRAY
, RECORD
, or UNION
). Example usage:Field name:
MATNR
Value:
10008
Filter options are lists of metadata field names and their value pairs. They define the filter condition to apply when reading data from an SAP DataSource. Only records that satisfy the conditions are extracted.
The filter key corresponds to a field in the schema. It must be of a simple type (not
ARRAY
, RECORD
, or UNION
). Example usage:Field name:
MTART
Value:
FERT
The runtime engine creates the specified number of partitions (and SAP connections) while extracting the records.
Use caution when increasing this value because it increases the simultaneous connections with SAP .
Recommended: plan for SAP connections for each pipeline and the total number of pipelines running concurrently.
If the value is 0 or left blank, Cloud Data Fusion chooses an appropriate value, based on the number of executors available, the records to extract, and the package size.
Use caution when setting this property . Multiple data pipelines extracting data can peak the memory usage, causing failures due to
Out of memory
errors. - Enter a positive, whole number.
- If 0 or left blank, the plugin uses a standard value of 70000, or an appropriately calculated value.
- If the data pipeline fails due to
Out of memory
errors, either decrease the package size or increase the memory available for your SAP work processes.
jco.destination.pool_capacity = 10
overrides the default connection pool capacity.Data type mappings
The following table is a list of SAP data types with corresponding Cloud Data Fusion types.
SAP data type | ABAP type | SAP description | Cloud Data Fusion data type |
---|---|---|---|
INT1
(Numeric) |
b | 1-byte integer | int |
INT2
(Numeric) |
s | 2-byte integer | int |
INT4
(Numeric) |
i | 4-byte integer | int |
INT8
(Numeric) |
8 | 8-byte integer | long |
DEC
(Numeric) |
p | Packed number in BCD format (DEC) | decimal |
DF16_DEC
, DF16_RAW
(Numeric) |
a | Decimal floating point 8 bytes IEEE 754r | double |
DF34_DEC
, DF34_RAW
(Numeric) |
e | Decimal floating point 16 bytes IEEE 754r | double |
FLTP
(Numeric) |
f | Binary floating point number | double |
CHAR
, LCHR
(Character) |
c | Character string | string |
string | Character string | string | |
STRING
(Character) |
string | Character string CLOB | bytes |
NUMC
, ACCP
(Character) |
n | Numeric text | string |
RAW
, LRAW
(Byte) |
x | Binary data | bytes |
RAWSTRING
(Byte) |
xstring | Byte string BLOB | bytes |
DATS
(Date/Time) |
d | Date | date |
TIMS
(Date/Time) |
t | Time | time |
TIMS
(Date/Time) |
utcl | Utclong ), TimeStamp | timestamp |
Limitations
To ensure pipelines are correctly defined and executed, review the following plugin limitations:
- Package sizes greater than 50k aren't supported.
- Data sources that don't support delta extraction fail in Sync mode.
- In a custom data source, if the package size isn't handled, then the pipeline fails in large data extractions.
Use cases
Two extraction contexts are supported:
- DataSources or Extractors (SAPI)
- ODP context ABAP CDS (ABAP_CDS)
The ODP plugin supports the following standard and custom data sources for both contexts:
ODP data source | Context | Full extraction | Delta extraction |
---|---|---|---|
SAP Standard pre-delivered
|
SAPI | Supported | Supported |
Custom (Z*)
|
SAPI | Supported | Supported |
SAP Standard pre delivered
|
ABAP_CDS | Supported | Supported |
Custom (Z*)
|
ABAP_CDS | Supported | Supported |
Release notes
What's next
- Learn more about Cloud Data Fusion .
- Learn more about SAP on Google Cloud .