cancel
Showing results for 
Search instead for 
Did you mean: 

How do we convert a HANA calculation View File into ABAP CDS?

digantogos
Participant
0 Kudos

HI Experts

I have a requirement to use a calculation view from Repository & make a ABAP CDS out of it. Please suggest ways to do this conversion.

Regards

Diganto

Accepted Solutions (1)

Accepted Solutions (1)

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

I would recommend to create a CDS table function implemented by AMDP that accesses the calculation view and returns its result and can be accessed in Open SQL.

We don't recommend external views any more.

digantogos
Participant
0 Kudos

The .calculationview file is absent at the ABAP layer but is existing inside HANA Repository. Table function will not read the database extract from the ABAP layer.

horst_keller
Product and Topic Expert
Product and Topic Expert

Why not? You can address other DB schemas in AMDP using fully qualified names.

Answers (1)

Answers (1)

0 Kudos

Hi Diganto,

Try to create an External View in the ABAP Perspective on top of HANA View.

Please have a look at the below document with the steps to do so.

https://archive.sap.com/documents/docs/DOC-44264

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

External views are not recommended any more, if you can use AMDP.