Forces the latest version of the database to be used.
Microsoft Dynamics NAV Database Server
Due to the version principle, you are guaranteed that the database version that you use is consistent, even if you do some time-consuming processing. For example, if you are using a report, and other users update the database while the report is running.
In a situation where this is not desirable and you need to use the latest version of data, you can use SELECTLATESTVERSION to enforce a reloading of the version that the client is using.
This function ensures that the data displayed is the most current data in the database. The function clears all non-locked records from the client cache, thereby ensuring that you read the most recent data.