Update Item Ledger Entry fields at the time of Purchase Receipt Posting:
(1) In this blog, we will update the “Item Ledger Entry” fields at the time of Posting Purchase Receipt or GRN, or MRN.
(2) For this, create fields via making an extension (Refer → Create Table Extension and Create Page Extension).
- Purchase Line → Create Purchase Line Extension, as shown.
- Purch. Rcpt. Line → Create Purch. Rcpt. Line Extension, as shown.
- Item Journal Line → Create Item Journal Line Extension, as shown.
- Item Ledger Entry → Create Item Ledger Entry Extension, as shown.
(3) After creating fields, in this example, a new Codeunit object is used, as shown. In the below custom process, we will flow or update M.R.P and Pack Size values in ILE (Item Ledger Entry Table) when the Purchase Receipt document is posted. For this custom process, two Events call, as shown.