Error "LOCNCODE can not be used when Inventory is not a registered module" occurs when a Sales Order Processing transaction is pushed in with eConnect. The site is registered for Inventory and a Sales Order Processing transaction can be entered manually within the Great Plains company.
I've seen this in GP 7 and 9.