BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP Community

How to share tables across different CAP projects

Four scenarios for reading one CAP project's table from another, worked out as a matrix of what each one needs: the same HDI container and namespace, the same container under a different namespace, a different container, and a different Cloud Foundry space. The mechanics change with each step — @cds.persistence.exists on the reused entity throughout, an .hdbsynonym once namespaces diverge, .hdbrole and .hdbgrants once containers do, and a user-provided service built from the grantor's credentials once spaces do. The author flags the caveat themselves: these are learning scenarios, and consuming the OData service is often the better answer than reaching into another project's database. Dated corrections from twelve days after publication sit inline — synonyms need only the name because the configuration comes from .hdbsynonymconfig, SERVICE_REPLACEMENTS in mta.yaml removes the hard-coded service name, and the reused container need not be bound to the srv module.

Where it sits

Explains
cap-cross-containerCAPcap-cross-containersampleA sample of five CAP services reading each other's HANA tables across HDI containers, with the grantor service key turned into a user-provided service.Native SAP HANA artifactsCAPNative SAP HANA artifactscapabilityUsing native SAP HANA database objects alongside an application’s generated data model, including objects and database features the modelling layer cannot express. Choosing a database is [database connectors](capability:database-connectors); changing an existing schema is [schema evolution](capability:schema-evolution).
Source
reachable

Who is behind it

Mio YasutakeMio YasutakePersonWrote this
In the atlas: maintains 47, contributes to 47, wrote 10
@miyasuta
author

Properties

About this work

declared and crawled
Published
declared
Published on
declared
Views
crawled
33,459

What was found on the page

derived
Prose
derived
1,160 words
Numbered steps
derived
4
Code blocks
derived
21
Repository links
derived
1

More on this10

Group by10 of 10 pieces
Piece, what it offersStill applies
Connecting Two SAP CAP Projects Without Duplicating Your Data
SAP Community, InderpreetThe reasoning
nothing recorded
Also byMio Yasutake9
CAP JavaでObject Pageの項目の動的な入力制御を実装する
Qiita, Mio Yasutake
nothing recorded
How to Control the Visibility of CRUD and Custom Actions in Fiori Elements Based on Authorization
SAP Community, Mio YasutakeThe reasoningRunnable code
nothing recorded
Using HANA Cloud’s "VECTOR_EMBEDDING" Function in CAP
SAP Community, Mio YasutakeThe reasoningRunnable code
nothing recorded
Testing SAP Build Process Automation task UI in SAP Business Application Studio
SAP Community, Mio YasutakeThe reasoningRunnable code
nothing recorded
Building an Analytical List Page with CAP OData V4
SAP Community, Mio YasutakeThe reasoningA recipeRunnable code
Gone quiet
Fiori Elements Analytical Table with CAP: Does it work with V2 and V4?
SAP Community, Mio YasutakeThe reasoningRunnable code
Core changed
Integrate Document Information Extraction into UI5 application
SAP Community, Mio YasutakeThe reasoningRunnable code
nothing recorded
Enable App-to-App Navigation in BAS
SAP Community, Mio YasutakeThe reasoningRunnable code
nothing recorded
How to consume UI5 custom libraries in BAS or VS Code
SAP Community, Mio YasutakeThe reasoningA recipeRunnable code
nothing recorded

Details

Graph6 edges
← POINTS HERE
POINTS OUT →
explainscap-cross-containerartifact
explainsNative SAP HANA artifactscapability, core only
published onSAP Communitypublishing source
discovered viaGitHub APImiyasuta
discovered viaSAP Community
Source
Type
blog
Published on
Host
community.sap.com
First seen
History1
  • Entered the atlasDiscovered via GitHub API · miyasuta, SAP Community.
For your agent
Ref
content:how-to-share-tables-across-different-cap-projects
JSON
/content/how-to-share-tables-across-different-cap-projects.json
MCP
Connecting an agent