cap-cross-container
A 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.
Facts
Where it sits
Who is behind it
In the atlas: maintains 47, contributes to 47, wrote 10@miyasutamaintainer
Before choosing this
Signals
LicenceNo licenseNeither the package manifest nor the repository tree declares a licence
Without a licence the default is all rights reserved. Ask the maintainer, or check for terms stated elsewhere, before depending on it.
What it declares
Every artifact
- Type
- Sample
- Origin
- Independently maintained
As a sample
- Form
- A tutorial's companion code
Connections
Connecting a data model and its queries to a database
Using native SAP HANA database objects beside the generated model
Building one solution from reuse packages other projects published
Download
Learn more
- How to share tables across different CAP projectsHow to share tables across different CAP projectsFour 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.published 2021-10-03Mio Yasutake, SAP Community
Architecture
as 5 deployment descriptors state it at 4484080, readNamed in more than one descriptor
master-dbmaster-orgs, master-partners-vendors, master-partners, sales
Download
Bound, and not drawn
- accounting-srvhana
- accounting-db-deployerhana, ups-master-db
Documented, with no instance in the document
- @cap-js/hana requires SAP HANA Cloudaccounting-srvconditionalThe database this is the service for: capire's standard database for production, reached with the credentials
cds watchorcds runfetch from the binding at runtime.Using SAP HANA Cloud for Production — capire, Prepare for ProductionThis configures deployment for SAP HANA. The configuration is added to a `[hybrid]` profile in your _package.json_.
Using SAP HANA Cloud for Production — capire, cds deployWith this information, `cds watch`/`run` can fetch the SAP HANA credentials at runtime, so that the server can connect to it.
Databases — capire, overview (the 2 is the page's footnote mark)in production, SAP HANA 2 is used by default
- @sap/xssec requires Cloud Identity Servicesaccounting-srv
Bound in the descriptor, not joined to an entry
hana
Download
Bound, and not drawn
- master-orgs-srvmaster-db
- master-orgs-db-deployermaster-db
Documented, with no instance in the document
- @cap-js/hana requires SAP HANA Cloudmaster-orgs-srvconditionalThe database this is the service for: capire's standard database for production, reached with the credentials
cds watchorcds runfetch from the binding at runtime.Using SAP HANA Cloud for Production — capire, Prepare for ProductionThis configures deployment for SAP HANA. The configuration is added to a `[hybrid]` profile in your _package.json_.
Using SAP HANA Cloud for Production — capire, cds deployWith this information, `cds watch`/`run` can fetch the SAP HANA credentials at runtime, so that the server can connect to it.
Databases — capire, overview (the 2 is the page's footnote mark)in production, SAP HANA 2 is used by default
- @sap/xssec requires Cloud Identity Servicesmaster-orgs-srv
Download
Bound, and not drawn
- master-partners-vendors-srvmaster-db
- master-partners-vendors-db-deployermaster-db
Documented, with no instance in the document
- @cap-js/hana requires SAP HANA Cloudmaster-partners-vendors-srvconditionalThe database this is the service for: capire's standard database for production, reached with the credentials
cds watchorcds runfetch from the binding at runtime.Using SAP HANA Cloud for Production — capire, Prepare for ProductionThis configures deployment for SAP HANA. The configuration is added to a `[hybrid]` profile in your _package.json_.
Using SAP HANA Cloud for Production — capire, cds deployWith this information, `cds watch`/`run` can fetch the SAP HANA credentials at runtime, so that the server can connect to it.
Databases — capire, overview (the 2 is the page's footnote mark)in production, SAP HANA 2 is used by default
- @sap/xssec requires Cloud Identity Servicesmaster-partners-vendors-srv
Download
Bound, and not drawn
- master-partners-srvhana
- master-partners-db-deployerhana
Documented, with no instance in the document
- @cap-js/hana requires SAP HANA Cloudmaster-partners-srvconditionalThe database this is the service for: capire's standard database for production, reached with the credentials
cds watchorcds runfetch from the binding at runtime.Using SAP HANA Cloud for Production — capire, Prepare for ProductionThis configures deployment for SAP HANA. The configuration is added to a `[hybrid]` profile in your _package.json_.
Using SAP HANA Cloud for Production — capire, cds deployWith this information, `cds watch`/`run` can fetch the SAP HANA credentials at runtime, so that the server can connect to it.
Databases — capire, overview (the 2 is the page's footnote mark)in production, SAP HANA 2 is used by default
- @sap/xssec requires Cloud Identity Servicesmaster-partners-srv
Bound in the descriptor, not joined to an entry
hana
Download
Bound, and not drawn
- sales-srvhana
- sales-db-deployerhana, master-db
Documented, with no instance in the document
- @cap-js/hana requires SAP HANA Cloudsales-srvconditionalThe database this is the service for: capire's standard database for production, reached with the credentials
cds watchorcds runfetch from the binding at runtime.Using SAP HANA Cloud for Production — capire, Prepare for ProductionThis configures deployment for SAP HANA. The configuration is added to a `[hybrid]` profile in your _package.json_.
Using SAP HANA Cloud for Production — capire, cds deployWith this information, `cds watch`/`run` can fetch the SAP HANA credentials at runtime, so that the server can connect to it.
Databases — capire, overview (the 2 is the page's footnote mark)in production, SAP HANA 2 is used by default
- @sap/xssec requires Cloud Identity Servicessales-srv
Bound in the descriptor, not joined to an entry
hana
README
quoted from miyasuta/cap-cross-container, readcap-cross-container
CAP Cross container examples
This project is for the following blog post: https://blogs.sap.com/2021/10/03/how-to-share-tables-across-different-cap-projects/
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
History in the atlas
- First seen.
For your agent
- Ref
artifact:miyasuta-cap-cross-container- JSON
- /artifacts/miyasuta-cap-cross-container.json
- MCP
- Connecting an agent