cancel
Showing results for 
Search instead for 
Did you mean: 

Expose a custom table(ZTABLE) available in S4 HANA using CDS views to SAP Analytics Cloud

karthik_s94
Discoverer
0 Kudos
825

Hello Community,

I am trying to expose a custom CDS view that needs to be consumed in the SAC.

I have a custom table and SAP allows only CDS view to be called in the Custom CDS (data source name) that we are exposing using few annotations to CDS.

Annotations used to expose CDS : 

//@Analytics.dataCategory: #CUBE -> Unable to use this annotation.

@analytics.dataExtraction.enabled: true

@VDM.viewType: #CONSUMPTION / #BASIC -> What to use ?

@analytics.query: true

@OData.publish: true

Example: 

Table Name : ZTABLE

Fields : VBELN, POSNR, VBTYP, MATNR, WERKS, LGORT.

Is there any other solution to expose the custom table directly to SAP Analytics Cloud ? Please let me know how i can achieve a solution to this case.

Thanks in Advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

you need to stack your cds view. don't put everything in one cds view.

interface view--->cube--->query

odata enablement is not needed.

you have to set the api state

https://community.sap.com/t5/technology-blogs-by-members/consume-cds-views-in-sap-analytics-cloud-st...