Showing results for 
Search instead for 
Did you mean: 

How we can define field description in hdbdd file while creating table

Former Member
0 Kudos

Hi Expert,

Could you please tell me how we can I declare field description while we are creating table through CDS.

Can we write comments on like in SQL .



Accepted Solutions (0)

Answers (1)

Answers (1)

Active Contributor
0 Kudos

Hello Uma,

the CDS Reference contains follwowing note:

In 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.

That means that you can write comments in the CDS syntax, but there is not option to define an e.g. column comment which will be available in the catalog object then.