Application Development and Automation 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: 
Read only

Where is the documentation for ABAP CDS Define Table (not Function) Statement?

Former Member
0 Likes
1,028

Hi,

I'm working on some S/4HANA solutions across both 1610 and 1709 on-premise versions. I've noticed that with 1709 there is a different way to create tables using a CDS "Define Table" syntax that doesn't appear available in the 1610 systems (where it reverts to opening SE11 in ADT.) I'm assuming this is due to the different version of the underlying ABAP/BASIS components.

I'm trying to find any documentation/help/guidance/anything at all on this but drawing a blank as most Google and SCN searches lead me to information relating to CDS Table Functions.

Any ideas, anyone?

1 ACCEPTED SOLUTION
Read only

retired_member
Product and Topic Expert
Product and Topic Expert
767

There simply is no DEFINE TABLE statement in ABAP CDS. I guess you mix it up with the DEFINE TABLE statement of the source code based ADT tool for classical database tables. I already wondered why there aren't more questions about that, because it might be a bit confusing. Looks like CDS, smells like CDS, tastes like CDS, but isn't CDS.

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

Just by coincidence I'm currently working on an ABAP Keyword Documentation version for that Dictionary DDL that should backup the following ADT documentation a bit.

https://help.sap.com/viewer/c238d694b825421f940829321ffa326a/7.52.0/en-US/fc6cd6f7d02f4546a33feb3f5f...

The DEFINE TYPE described there is in fact either DEFINE STRUCTURE or DEFINE TABLE. That's why you didn't find it.

2 REPLIES 2
Read only

retired_member
Product and Topic Expert
Product and Topic Expert
768

There simply is no DEFINE TABLE statement in ABAP CDS. I guess you mix it up with the DEFINE TABLE statement of the source code based ADT tool for classical database tables. I already wondered why there aren't more questions about that, because it might be a bit confusing. Looks like CDS, smells like CDS, tastes like CDS, but isn't CDS.

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

Just by coincidence I'm currently working on an ABAP Keyword Documentation version for that Dictionary DDL that should backup the following ADT documentation a bit.

https://help.sap.com/viewer/c238d694b825421f940829321ffa326a/7.52.0/en-US/fc6cd6f7d02f4546a33feb3f5f...

The DEFINE TYPE described there is in fact either DEFINE STRUCTURE or DEFINE TABLE. That's why you didn't find it.

Read only

0 Likes
767

Hi Horst,

Thanks for the clarification - it explains why I could find no mention of this statement in anything relating to CDS content!

Indeed, it does look, smell and taste like CDS but the big clue is that the artifacts are not stored under the CDS content node in ADT...

I think this addition to make the base DDIC creation look, taste and smell like CDS is a good thing as it brings more consistency to the whole app design/build process.