Explore Data Products from SAP® BDC Connect for Snowflake¶
This topic describes how to use a Zerocopy Connector to list available SAP® data products, create catalog-linked databases, and query the shared data in Snowflake.
The connector must be in CONNECTED state before performing any of the
steps in this topic.
In SAP® BDC, choose data products to share with Snowflake¶
To search for and share data products with Snowflake, users must use the central SAP Business Data Cloud catalog and have a global role that grants them the following privileges:
- BDC Data Packages (read) - To access SAP Business Data Cloud.
- Catalog Asset (read) - To access the catalog and view objects in the Assets and Data Products collections.
- Cloud Data Product (share) - To share data products to target systems.
Users with these privileges can share data products from the SAP Business Data Cloud catalog with the desired SAP Snowflake account to make them available for consumption to specific roles in that account.
To share data products with Snowflake:
- In the central SAP Business Data Cloud catalog, select data products to share with an SAP Snowflake account
- From Catalog & Marketplace, search for (or use filters) to find the data products to be shared
- From the search results, select Share in the data product to be shared (for example, customer) to open the Manage Share Access dialog
- In the Overview section, learn more about the data product by reviewing its details and available objects.
- Under Target System:
- Choose the Snowflake account with the enrolled Zerocopy Connector to share with (if there is more than one).
- Select Update.
A message confirms the share process has started. After it finishes, a notification shows the result.
In Snowflake, list shared data products¶
To list the data products that SAP® BDC has shared with your Snowflake account,
call the SYSTEM$ZEROCOPY_CONNECTOR_LIST_SHARES function:
The function returns a JSON array. Each element represents one shared data product:
To filter and search more easily, parse the JSON output into a tabular format
using PARSE_JSON and LATERAL FLATTEN:
Create a Catalog-Linked Database¶
To mount a shared SAP® data product in Snowflake, create a catalog-linked database using the
LINKED_ZEROCOPY_CONNECTOR clause. The role requires CREATE DATABASE on
the account and USAGE on the connector. The owner of the catalog-linked database can be
different from the owner of the connector.
Note
When a catalog-linked database is created, a read-only schema named
snowflake$ is automatically created within it. This schema contains
Semantic Views generated
from the SAP® Core Schema Notation (CSN). Semantic Views add business
meaning to the incoming shared data by defining metrics, entities, and
relationships — enabling consistent business definitions and powering
AI capabilities such as
Cortex Analyst
directly on top of the SAP® data in Snowflake.
Use SYNC_INTERVAL_SECONDS to control how frequently Snowflake
automatically discovers schema and table changes from the shared data
product. The value can range from 30 to 86400 seconds (1 day). The
default value for SAP® BDC is 86400 seconds.
You can create multiple catalog-linked databases from the same connector, one per data product shared from SAP® BDC.
To confirm the database was created, use SHOW DATABASES:
Explore the Data¶
List the schemas and tables available in the catalog-linked database:
Query the data:
You can join tables across multiple catalog-linked databases. For example, to find the top customers by revenue using data from two shared data products:
Create Table As Select (CTAS)¶
To persist query results as a native Snowflake table, use CREATE TABLE AS SELECT (CTAS). Create a new database to hold the results:
Drop a Catalog-Linked Database¶
All catalog-linked databases must be dropped before you can disconnect or drop the connector.
Catalog-linked databases do not support UNDROP.