I wrote some CAL code for updating my approval entry table for multiple users approvals for documents in a workflow.
IF (ImprestHeader."Pending Approvals" = 1) AND (ImprestHeader."Request Status" = ImprestHeader."Request Status"::"Pending Approval") THEN BEGIN
IF Approval.FINDFIRST THEN BEGIN REPEAT
IF (Approval."Sequence No." = 2) AND (Approval.Status = Approval.Status::Open) THEN
UNTIL Approval.NEXT = 0;
I also follow this link: https://www.myerrorsandmysolutions.com/you-do-not-have-the-following-permissions-on-tabledata/
By the way it was working fine in the test server but with error messages in the live server with job queue reports:
What can I do to solve these error messages.
Client license didn't permit me to modify approval entry table with a report except codeunit. Thank you.
There could be multiple reasons for this.
Licensing is the one which you figured out.