Skip to Content

How can we mention Column comments during TABLE creation using hdbcds file

Feb 21 at 10:05 AM


avatar image

I could not find the syntax to mention column comments.

In the below mentioned blog they have mentioned, there is no way to create column comments. Is this true?

CDS, there is no way to reproduce the column-comments defined in an hdbtable artifact. You can use source code comments, for example, '/* */' or '//', however, the comments do not appear in the catalog table after activation of the new CDS artifact.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Florian Pfeffer
Feb 21 at 12:44 PM

Comments in CDS files can be created since HANA 2.0 SPS02 (check the blog here or the official help for more details and examples).


Show 3 Share
10 |10000 characters needed characters left characters exceeded

Even after mentioning the @Comment field in HDBCDS file, I am not able to see the column comments. I have added this and checking the TABLE_COLUMNS to validate the same but its null always.

The HANA version details we are using:

SAP HANA Version (fa/hana2sp02) Platform: Cloud Foundry Any suggestions why I am not able to add column comments while creating the table through HDBCDS.


Can you show how you have added them and that the HDI container is really based on 2.0 SPS02?


Find the sample hdbcds file as an attachment and version details.



samplefile.txt (703 B)
hanainfo.png (18.0 kB)