Update Item Ledger Entry fields at the time of Purchase Receipt Posting in D365 BC

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.
Purchase Line Extension Code Business Central
  • Purch. Rcpt. Line Create Purch. Rcpt. Line Extension, as shown.
Create Purch. Rcpt. Line Extension Code D365 BC
  • Item Journal Line Create Item Journal Line Extension, as shown.
Item Journal Line Extension in Business Central
  • Item Ledger Entry Create Item Ledger Entry Extension, as shown.
Item Ledger Entry Extension in Business Central

(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.

Update Item Ledger Entry fields at the time of Purchase Receipt Posting Codeunit

How to Disable Multi-Factor Authentication in D365 BC Online
Field Group (DropDown Controls) in D365 BC
How to Create Cash Receipt Voucher in D365 BC
Types and Setup of Voucher in D365 BC for Indian Localization
Posting Purchases– Microsoft Docs

Leave a Reply