RaTiO
RaTiO

Reputation: 1049

What is the naming convention for fields added to a standard CDS view via custom extension?

SAP didn't include an underlying database table field to the interface view I want to reuse for my custom consumption view.

I can easily add it extending the standard CDS, but I'm afraid a future release will include this field and create a conflict if they use the same name than me. Traditionally the prefix ZZ was used for append structure fields in the data dictionary.

Should I follow the same approach for a CDS extension? I was not able to find a document about this.

Upvotes: 2

Views: 964

Answers (1)

ConjuringCoffee
ConjuringCoffee

Reputation: 63

In the SAP press book Core Data Services for ABAP (written by Renzo Colle, Ralf Dentzer, Jan Hrastnik) from 2018 they recommend using the customer namespace or ZZ as a prefix to custom fields. This avoids possible naming collisions.

Upvotes: 0

Related Questions