cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming a CDS view in an AMDP( table function )

ShyamSunderJKR
Explorer
0 Kudos

I am having issues in using a CDS view instead of a table in the AMDP method implementation. In the method definition after the keyword USING, I used 1. The SqlViewname , but the error it says use the CDS entity name . So option 2. Used the cds view name but the again I get an error saying , it's not an dictionary object.

Can someone please show how to exactly and correctly go about this ?

Ramjee_korada
Active Contributor

hi Shyam,

I have used CDS views many times. Can you share the screen shot with option #1 - SQLview name.

BR,

Ramjee

Accepted Solutions (0)

Answers (1)

Answers (1)

ShyamSunderJKR
Explorer
0 Kudos

Hello Ramjee,

The issue was because of the SQL script, the return statement was not handled correctly. It seems to work now.

Thank you for offering to help.

Best Regards,

Shyam.