A unit can be locked so that no modifications can be carried out on it. This can be done as follows:
1. In the database open the table Master_unit_info.
2. Goto the unit you wish to lock or unlock.
3. Modify the parameter is_locked (0=unlocked, 1=locked).
This can also be achieved using a stored procedure at runtime if required.