I am trying to edit new field ( which I added ) in Item Ledger Entry, I tried creating new code unit same Cust Entry-Edit and modifying only the new field but it did not work
can anyone help me with that
I am trying to edit new field ( which I added ) in Item Ledger Entry, I tried creating new code unit same Cust Entry-Edit and modifying only the new field but it did not work
can anyone help me with that
Is is possible to be a problem in the license ?
Thanks for ur answer. I already did everything the same as cust ledger entry but still did not work
this is the code i wrote in the code unit
OnRun(VAR Rec : Record "Item Ledger Entry")
ItemLedgEntry := Rec;
ItemLedgEntry.LOCKTABLE;
ItemLedgEntry.FIND;
IF ItemLedgEntry.Open THEN BEGIN
ItemLedgEntry."Parent Item No":="Parent Item No";
END;
ModifyItemLedgerEntry(ItemLedgEntry,Rec);
ItemLedgEntry.TESTFIELD("Entry No.","Entry No.");
ItemLedgEntry.MODIFY;
Rec := ItemLedgEntry;
and i gave it modification permission for ILE
Hi, The method shared by Inge should be work well.
I think you can refer to the standard code of Customer Ledger Entries, there are some fields that can be modified.
Hope this will help.
Thanks.
ZHU
Thank you for your answer, I really appreciate it . I already did this. I created code unit with modification permission ( same as Cust ledg-Edit CU) and add the field I wanted to edit but I can not edit the field in ILE ( the value does not even change). I guess the code unite is working fine but the problem is in the ILE, how i can modify the field?
The Item Ledger Entry table is read-only by default. So if you have any objects that needs to edit them. The object that is editing it (page, report or codeunit) needs to be granted a specific permission to to edit the records.
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... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156