Production Order Ended Status Error

Hi,### I need to change the Production order status “Started” to “Ended” through code,Please help.I already try this code.### prodTable = ProdTable::find(“My ProdId”);### prodTable.autoUpdate(ProdStatus::StartedUp);### This is error i’m getting while i hit my post button

“Auto-update does not support production status Ended.”### With regards,### harivalla