Skip to Content
3
Jul 13, 2020 at 04:25 PM

ABAP Doc for ABAP CDS Views or how to document CDS View inline?

443 Views Last edit Jul 13, 2020 at 04:25 PM 2 rev

Hello SAP ABAP CDS Specialists,

is it possible to add inline documentation using /** */ as it is supported since March 2020 in the SAP Cloud Application Programming Model? When such a comment is added for an Entity i.e.:

/** 
Entity with documentation
*/
entity Books : managed {
  key ID : Integer;
}

it will end up in the following Annotation in the OData Service EDMX File:

<Annotation Term="Core.Description" String="Entity with documentation"/>

I think that would be helpful because CDS Views might be quite complex and by using the well known /** */ syntax also non ABAP tools might be used to create the documentation i.e. based on the abapGit repository containing the CDS Views.

Best regards
Gregor