How to Set Default Values in Change Status on Production Order in BC D365

Set Default Values in Change Status on Production Order in BC D365:

(1) In this blog we do some changes in the “Change Status on Prod. Order Page” as per the requirement. For this, you can set any value on the page, as per the below screenshot, By-Default values are given below.

do you want to chnage the status of production order in d365 bc

(2) Now in this screen, we will set values as per the requirement via AL Code. For this:

  • Create a “Change Status on Prod. Order” page extension.
  • Call EventSubscriber → OnBeforeOnRun of codeunit “Prod. Order Status Management”.

(3) Create a “Change Status on Prod. Order” page extension, as shown.

Change Status on Prod. Order in d365 bc

(4) Call EventSubscriber, as shown. In this case, the “Update Unit Cost” value is true, when the page is call. For using the below code, you can set any value as per the requirement.

Call EventSubscriber in Business Central

(5) After doing the above step, go to the Released Production Order list or Document, and press the button Change Status, as shown.

Released Production Order list D365 BC

How to attach Report in Page in D365 BC
How to define Custom Object Range in AL in D365 BC
Usage of TESTFIELD in D365 BC
Creation and Usage of Temporary Table in BC D365
How to Move fields in Page via AL Extension in D365 BC
About Production Orders– Microsoft Docs

Leave a Reply