web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

i want to edit field in Item Ledger Entry

(0) ShareShare
ReportReport
Posted on by 90

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 have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    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.

    https://navisionary.com/?p=359

  • muaz deyab Profile Picture
    90 on at

    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?

  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at

    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.

    pastedimage1641943654574v1.png

    Hope this will help.

    Thanks.

    ZHU

  • muaz deyab Profile Picture
    90 on at

    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

  • muaz deyab Profile Picture
    90 on at

    Is is possible to be a problem in the license ?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans