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