September 22, 2026
Enhancing SAP Data with Google Cortex and SAP BDC Connect for BigQuery
SAP and Google Cloud recently expanded their partnership with the general availability of SAP Business Data Cloud (BDC) Connect for…

By Ekaterina Kruse
6 min read
SAP and Google Cloud recently expanded their partnership with the general availability of SAP Business Data Cloud (BDC) Connect for BigQuery. In a previous post, we explored the first step of this journey, sharing a data product from SAP BDC to BigQuery for conversational analytics.
Because this integration is bi-directional, we can now complete the circuit. We can merge that native SAP data with external datasets (like marketing or CRM data) in BigQuery and share the enriched results back to SAP users without moving underlying files.
In this hands-on guide, we walk through that return trip. We focus on extending SAP data using Google Cortex Framework agentic skills and publishing the newly enhanced data product back to SAP BDC.
Our working example uses marketing attribution. By joining Salesforce Marketing Cloud campaign data with SAP S/4HANA Sales Orders in BigQuery and returning them via zero-copy sharing, teams can tie marketing campaigns directly to realized revenue, bringing upstream CRM context straight into tools like SAP Analytics Cloud.
For deeper background on the architecture, you can read the official announcement or dive into the technical details in the documentation.
Architecture and Data Flow
The architecture follows three primary phases:
- Inbound Sharing: Share standard BDC data products into Google BigQuery.
- Enrichment: Extend SAP data with external sources using Google Cortex agentic skills.
- Outbound Sharing: Package and share the enriched dataset back to SAP BDC using an Iceberg REST catalog.
Bringing SAP BDC Data into Google Cloud
We begin by exposing the standard Sales Order data product from SAP BDC (see full SAP Business Data Cloud integration docs).
The process starts with the establishing of trust via a three-way handshake:
- A Google Cloud admin creates an empty federated Lakehouse Delta Sharing Catalog to generate a service account ID.
- The SAP admin provisions a BDC Connect instance in SAP for Me using this service account ID, generating an enrollment URL and token.
- The Google Cloud catalog is updated with these SAP details to complete trust setup.
Once trust is set up, our data product can be shared from SAP BDC to Google BigQuery.
The shared data product is immediately queryable in BigQuery using standard SQL or conversational analytics. Data remains in SAP storage while BigQuery reads files directly via secure signed URLs. This delivers unified analytics with zero data copying.
Extending Data Products with Cortex Framework
For our CRM external data, we use a BigQuery table representing Salesforce records with fields: OpportunityID, CampaignName, Channel, CampaignBudget, SoldToParty, and CRMCloseDate.
Google Cloud Cortex Framework accelerates deployment of enterprise analytics. Cortex 7 offers built-in support for SAP BDC, managing data product registration, dependencies, and reference solutions.
Using the Cortex agentic data product builder, we generate complete Dataform pipelines, automated tests, and documentation from plain English descriptions (see agentic skills documentation).
We first ask the Cortex agent to merge the SAP BDC salesorderitem and salesorder views into a single unified view. We then instruct the Cortex agent to combine this with our Salesforce CRM table into a new data product called marketing_roi.
Here is the natural language prompt supplied to the agent to automatically build the marketing_roi data product:
Create a Cortex Framework data product named marketing_roi in the
namespace cortex_demos and deploy it to the cortex7_demos dataset.
The goal is to calculate campaign conversion and ROI by joining the
custom Salesforce Opportunities data with the SAP BDC sales orders data.
Link the records by matching the Sold To Party identifier across both systems,
but only include matches where the SAP sales order date happens on or
after the Salesforce close date. The final output should expose the
campaign name, channel, budget, and close date from the CRM side,
alongside the sales order number, order date, sold to party, material,
order quantity, item net amount, and transaction currency from the ERP side.Create a Cortex Framework data product named marketing_roi in the
namespace cortex_demos and deploy it to the cortex7_demos dataset.
The goal is to calculate campaign conversion and ROI by joining the
custom Salesforce Opportunities data with the SAP BDC sales orders data.
Link the records by matching the Sold To Party identifier across both systems,
but only include matches where the SAP sales order date happens on or
after the Salesforce close date. The final output should expose the
campaign name, channel, budget, and close date from the CRM side,
alongside the sales order number, order date, sold to party, material,
order quantity, item net amount, and transaction currency from the ERP side.Here is how the resulting view created from this query looked like in my case. Additionally, the agent created the dataform scripts, tests and the documentation. Please note, in this case, I did not materialize the data product, however, when combining SAP data products with external data, it might be beneficial to create them as materialized tables for performance reasons.
Publishing the Enriched Data Back to SAP BDC
To make the enriched marketing_roi dataset available to SAP business users in tools like SAP Analytics Cloud, we share it back using an Iceberg REST catalog.
The Iceberg REST catalog tracks table schemas and underlying Parquet file locations stored in Cloud Storage, enabling zero-copy outbound sharing to SAP Business Data Cloud.
Refer to the official documentation for baseline prerequisites. The following sections walk through our exact implementation steps.
Provisioning the catalog and Iceberg table
Let us briefly walk through the steps to set up storage and catalog infrastructure as detailed in the Lakehouse REST Catalog setup guide.
First, create a dedicated Google Cloud Storage bucket to house physical Iceberg data and metadata files.
Next, create an Iceberg REST catalog endpoint with credential vending enabled. This allows the catalog to issue short-lived access tokens required by SAP to read cloud storage without static service account keys.
Define a namespace within the catalog to logically group shared data products.
Materialize the marketing_roi view as a physical Iceberg table into the new catalog namespace using BigQuery SQL:
bq query --use_legacy_sql=false "CREATE TABLE `<your project id>.<your catalog name>.<your namespece>.marketing_roi_iceberg` AS SELECT CampaignName, Channel, CAST(CampaignBudget AS NUMERIC) AS CampaignBudget, CRMCloseDate, SalesOrder, SalesOrderDate, SoldToParty, Material, OrderQuantity, CAST(ItemNetAmount AS NUMERIC) AS ItemNetAmount, TransactionCurrency FROM `<your project id>.cortex7_demos.marketing_roi`;"bq query --use_legacy_sql=false "CREATE TABLE `<your project id>.<your catalog name>.<your namespece>.marketing_roi_iceberg` AS SELECT CampaignName, Channel, CAST(CampaignBudget AS NUMERIC) AS CampaignBudget, CRMCloseDate, SalesOrder, SalesOrderDate, SoldToParty, Material, OrderQuantity, CAST(ItemNetAmount AS NUMERIC) AS ItemNetAmount, TransactionCurrency FROM `<your project id>.cortex7_demos.marketing_roi`;"This command writes the physical Parquet and Iceberg metadata files to Cloud Storage and registers the table with the REST catalog. While BDC Connect allows zero-copy reads of the source data, materializing a heavily enriched, cross-platform dataset as a physical Iceberg table ensures optimal query performance when consumed downstream by SAP.
Enforcing primary keys for SAP
SAP BDC requires non-nullable primary keys on outbound tables. We configure these using the Iceberg REST API:
- Fetch the current metadata payload:
curl -s -X GET \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "X-Iceberg-Access-Delegation: vended-credentials" \
"https://biglake.googleapis.com/iceberg/v1/restcatalog/v1/projects/<your project id>/catalogs/<your catalog name>/namespaces/<your namespace>/tables/marketing_roi_iceberg" > table_metadata.jsoncurl -s -X GET \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "X-Iceberg-Access-Delegation: vended-credentials" \
"https://biglake.googleapis.com/iceberg/v1/restcatalog/v1/projects/<your project id>/catalogs/<your catalog name>/namespaces/<your namespace>/tables/marketing_roi_iceberg" > table_metadata.json-
Update the downloaded table_metadata.json. Copy your table UUID, locate the fields array, change the SalesOrder and Material fields to "required": true, and add their IDs to the identifier-field-ids array. Save this as a new file named update_request.json.
-
Submit the schema update request:
curl -X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "X-Iceberg-Access-Delegation: vended-credentials" \
-H "Content-Type: application/json" \
-d @update_request.json \
"https://biglake.googleapis.com/iceberg/v1/restcatalog/v1/projects/<your project id>/catalogs<your catalog name>/namespaces/<your namespace>/tables/marketing_roi_iceberg"curl -X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "X-Iceberg-Access-Delegation: vended-credentials" \
-H "Content-Type: application/json" \
-d @update_request.json \
"https://biglake.googleapis.com/iceberg/v1/restcatalog/v1/projects/<your project id>/catalogs<your catalog name>/namespaces/<your namespace>/tables/marketing_roi_iceberg"Establishing trust with Workload Identity Federation
To grant SAP secure access without static keys, configure Workload Identity Federation in Google Cloud.
Create a workload identity pool and OIDC provider referencing your SAP BDC tenant's issuer URI. Map token attributes so SAP workloads can securely obtain short-lived credentials for BigLake and Service Usage APIs (see WIF configuration guide).
Packaging and Publishing the Share
Publish the data back to SAP BDC via either of two paths:
- Knowledge Catalog Data Product: Group specific curated tables using gcloud CLI.
- Direct REST Catalog Publishing: Publish the Iceberg REST catalog directly using the Google Cloud Console UI.
For detailed steps, see Publishing Data to SAP BDC.
Below is the UI configuration for publishing our Iceberg REST catalog directly to SAP BDC:
Once published, the shared dataset appears natively inside the SAP BDC catalog:
Conclusion
We have now completed the full round trip, taking native SAP S/4HANA data exposed via a Federated catalog, enriching it with external CRM data in BigQuery, and securely publishing the newly materialized data product back to SAP BDC through an Iceberg REST catalog.
This pattern eliminates redundant data movement, streamlines prompt-based pipeline creation with Cortex, and delivers native cross-system insights to business users in both SAP Analytics Cloud and BigQuery.
To get hands-on with some of these concepts, try the Cortex lab available on Google Cloud Skills Boost. Stay tuned for additional labs coming soon, which will focus specifically on the Cortex extensibility agentic framework to help you practice building and extending your own data products in Google Cloud.