cancel
Showing results for 
Search instead for 
Did you mean: 

How to reuse the existing Hana table in SAP CAP

Ranjith
Participant
0 Kudos

HI All,

I would like to reuse the existing hana table in my SAP CAP project. is it enough to add the @cds.persistance.exists annotation in the cds file ? Or do i need to add any schema name in the mta.yaml.

Thanks & Regards,

Ranjithkumar Ayyavu

Accepted Solutions (1)

Accepted Solutions (1)

pfefferf
Active Contributor
0 Kudos

The name of the DB table must match the name of the CDS entity name (incl. namespace and context if defined).

To make existing DB objects "fit" into your CAP name schema, you can define synonyms on DB level.

Details can be found here.

Answers (0)