cancel
Showing results for 
Search instead for 
Did you mean: 

How to access S4HANA CDS Views from SAP Analytics cloud(SAC)

tnithya13
Explorer
0 Kudos

Trying to create SAC Dashboard based on se11 Ztable. Have created CDS view on top of Ztable in Eclipse and used annotation @Analytics.query: true". But, when tried to access from SAC - S4HANA live connection, unable to find any datasources except for 2C Datasources. is there any settings needs to be enabled from SAP? Is it possible to implement by any other way?

Thanks,

Nithya

sasidharg
Explorer
0 Kudos

Hello Nitya,

Hopefully you got your answer or else we have to include @oData.publish:true annotation in your cds view,

Best Regards,

Sasidhar

tnithya13
Explorer
0 Kudos

Hello Sasidhar Gunturu,

Thanks for your reply.

I already tried including @oData.publish:true annotation, still could not see the Datasource in SAC.

Nithya

William_Yu
Product and Topic Expert
Product and Topic Expert
0 Kudos

We accepted the answer for you at the moment, please feel free to reopen if you not satisified with the answer.

Accepted Solutions (1)

Accepted Solutions (1)

jannis
Explorer

Hello Nithya,

Could you please search for 2C"technical name of your cds"? The Annotation @Analytics.query: true should create a query with the prefix 2C followed by the technical name of your cds. You can also search for it via TCODE: RSRT.

Best Regards,

Ioannis

tnithya13
Explorer
0 Kudos

Thanks for the reply Ioannis.

Actually, annotation @Analytics.query: true did not work and when tried to activate CDS, it shows below error.

eclipse-error.png

And if its removed, then CDS Gets activated. And when ran(ctrl+f11) the cds view, able to see table data in Eclipse.

is it possible to use the 'annotation @Analytics.query: true' when using Ztable as source or is it only possible when using cube?

Thanks,

Nithya

jannis
Explorer

Could you please try to create a 'base' CDS view using Ztable and the try to use that CDS view in another 'Consumption' CDS view with @Analytics.query: true' .


Best Regards,

Ioannis

Answers (2)

Answers (2)

tnithya13
Explorer
0 Kudos

Hey John,

Version of S/4HANA is 2020 and embedded version is 755. please let me know if any other details needed.

Regards,

Nithya

tnithya13
Explorer
0 Kudos

Hey Ioannis,

As Suggested, I did try creating basic cds first and top of that Consumption view. it is throwing same error.

"Error reading Infoprovider for CDS View"

I also tried creating basic cds, on top of that composite type and on top of composite I did consumption. everything works fine when I remove annotation @Analytics.query: true. if added its throwing the error.

I wonder if this is possible using ZTABLE at all?

hey John,

I tried those links but it did not help achieving CDS View with @analytics.query:true.

Thanks,

Nithya

JohnL
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi tnithya13 , what version of S/4HANA are you on? What is the embedded BW version ? 751/752/753/754

Thx,

John