Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CDS Table function

0 Kudos

I am trying get familiar with ABAP CDS and stumbled with the following:

In ABAP CDS view with table function; we do the define the CDS view in HANA studio/ABAP ADT and leave the implementation to AMDP class in ABAP for native SQL. But we can write the same Native SQL with in the CDS; why do we need an AMDP implementing class/method here?

1 ACCEPTED SOLUTION

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

"ABAP CDS view with table function;"

There is not such a thing. There are either CDS views or CDS table functions.

"But we can write the same Native SQL with in the CDS"

No you can't do that in ABAP CDS.

https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenddic_cds_table...

"who do we need an AMDP implementing class/method here"

Because the language of CDS is a platform independent DDL.

2 REPLIES 2

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

"ABAP CDS view with table function;"

There is not such a thing. There are either CDS views or CDS table functions.

"But we can write the same Native SQL with in the CDS"

No you can't do that in ABAP CDS.

https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenddic_cds_table...

"who do we need an AMDP implementing class/method here"

Because the language of CDS is a platform independent DDL.

0 Kudos

Horst, thanks for the clarification.