Once upon a time, and really not such a long time ago, there was no such thing as a codenit type. In all honesty, there is still no such thing as a codeunit type – there is subtype , though. (Why we have subtypes, without having types, beats me, but let’s let the semantics go.) Nowadays, we have four codeunit types.