To modify the description in Item Ledger Entries, you'll need to update your AL code to include the RIMD
permission set, which allows you to modify data in the table.
Here's the updated code:
codeunit 50101 "Modify Item Ledger Entry"
{
Permissions = tabledata "Item Ledger Entry" = rimd;
trigger OnRun()
var
ItemLedgerEntry: Record "Item Ledger Entry";
begin
if ItemLedgerEntry.Get(<Entry No.>) then begin
ItemLedgerEntry.Description := 'New Description';
ItemLedgerEntry.Modify();
end;
end;
}
Make sure to replace <Entry No.>
with the specific entry number you want to update. This codeunit will grant the necessary permissions to read, insert, modify, and delete data in the "Item Ledger Entry" table.
Deploy the extension and run the codeunit to apply the changes.
If you need further assistance, feel free to ask!
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal...
285,480
Super User
Martin Dráb
225,450
Super User
nmaenpaa
101,148