The NAV datatype
Record provides an interface to tables in the database. A certain limitation of the Record type is that a declaration of a
Record variable is fixed in design time. Each variable must be linked to a table in the object design, and the link cannot be changed dynamically.
An alternative to static linking is the
RecordRef datatype. A variable of
RecordRef type is assigned to a specific table at runtime, but dynamics linking leads to higher complexity of code.
FieldRef datatypes will be used to write a function comparing two records from the same table.
CompareRecordsin the codeunit. ...