技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
sap-datasphere【数据与研究】SAP Datasphere — cloud data warehouse on BTP for semantic data modeling, federation, analytical models, spaces, remote/local tables, data flows, replication flows, catalog, role-based access, SAC integration. Use when building Datasphere data models, federating SAP and non-SAP data, creating analytical datasets for SAP Analytics Cloud, or managing Op…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Cloud data warehouse on SAP BTP — semantic data modeling, federation, and catalog. Built on SAP HANA Cloud; consumes CDS views from S/4HANA and external sources alike.
Finance, Sales) — content isolation boundarySources Datasphere Consumers
──────── ────────── ─────────
SAP S/4HANA (CDS/ODP) ──┐
SAP SuccessFactors ────────┤ Spaces
Non-SAP (SQL Server) ──────┤ ├── Connections
CSV / Parquet files ───────┘ ├── Remote Tables (federation)
├── Local Tables (replicated/Open SQL)
├── Views (SQL / graphical)
├── Data Flows (ETL)
├── Replication Flows (CDC / batch)
└── Analytical Models (star schema)
↓
SAC / Data Lake / API
Space: Finance (content isolation)
├── Connections — S4HANA_PRD, AZURE_SQL, CONCUR_API
├── Tables — remote (federated) + local (replicated/pushed)
├── Views — SQL views, graphical views
├── Data Flows — ETL transformations (max 30 steps)
└── Analytical Models — star schema with measures + dimensions
Federated queries execute on the source — no data copy, always fresh.
-- Create remote table from S/4HANA CDS view
CREATE REMOTE TABLE ZRT_MATERIALS
ON ZS4_CONNECTION
AS SELECT * FROM Z_I_PRODUCT;
-- Federated join: Datasphere local + S/4HANA remote
SELECT ds.sales_amount, s4.product_desc
FROM ZDS_SALES AS ds
JOIN ZRT_PRODUCTS AS s4 ON ds.material = s4.material;
-- Federation on federation (HANA Cloud → Data Lake via virtual table)
CREATE VIRTUAL TABLE VT_DL_SALES
AT "REMOTE_SOURCE_DL"."<NULL>"."DL_SCHEMA"."SALES_FACT";
External systems push data directly into Datasphere via database users.
-- Admin creates Open SQL schema + database user
-- External system writes via standard SQL INSERT/UPSERT
-- Then import in Data Builder → deployed as local table
Source Table → Join → Filter → Aggregation → Target Table
MARA (remote) → +MAKT → active only → count by type → Z_MATERIAL_STATS
S/4HANA CDS View → CDC (near-real-time) → Datasphere Remote Table
→ Batch (scheduled) → Local Table (snapshot)
Fact: SalesFacts
├── Dimension: ProductDim (ProductID, Material, Description)
├── Dimension: TimeDim (Date, Month, Quarter, Year)
├── Dimension: CustomerDim (CustomerID, Name, Region)
└── Measures: Revenue, Quantity, Margin
Expose as OData service → consumed by SAC stories and dashboards.
SAP S/4HANA exposes a Virtual Data Model (VDM) via CDS views with layers:
Basic (F) → Composite (I) → Consumption (C) → Query
raw data reused joins ready-to-consume analytics
I_* or C_* views via ODP (Operational Data Provisioning)@AnalyticsDetails) carry through to SACSpace: Finance
├── Role: Finance_Analyst → Read access to all Finance views
└── Role: Finance_Restricted → Read access with row-level filter (region = 'EU')
F_* (basic) views is discouraged; prefer I_* or C_* for stability.# 1. Check space connectivity (Datasphere CLI or web UI)
# Space → Connections → verify green status on each connection
# 2. Validate remote table freshness
SELECT COUNT(*), MAX(last_loaded_at) FROM ZRT_MATERIALS;
# 3. Test analytical model exposure
# Open model in Data Builder → Preview → verify rows return
# 4. Verify SAC connection
# SAC → Connection → Datasphere → Test → green
# 5. Check replication flow status
# Data Integration Monitor → flow name → Last Run = Success
# 6. Confirm ACL enforcement
# Log in as restricted user → verify row-level filter applied