In Dynamics Nav 2018 I made this codeunit 50006 called Prova:
OnRun()
MESSAGE('Hello');
When I Ctrl+R or run it will display this error message:
You do not have the following permissions on CodeUnit Prova: Execute
My user has SUPER permissions.
If it's a license thing I really don't know how to check that.
How can I run this codeunit? Or check if it's a license issue?
EDIT:
I've tested to create a REPORT and run it:
OnPreReport()
PurchHeader.GET('CF-181003');
PurchHeader."Buy-from Vendor No." := 'RONALDO';
PurchHeader.MODIFY;
It ran but I got this error:
You do not have the following permissions on TableData Purch. Inv. Header: Modify
Most probably it IS a license restriction. There are two options to check that.