Dear Experts,

In production Order(PPO) I have added the another source type "Blanket order". If we refresh the PPO then sales line item and its related sfg item and its quantity automatically added in PPO lines. In PPO lines table I have add another option if source type will be "Blanket order" then user can edit the item code/variants and its related quantity.

But if I try to change the item code in PPO lines then all PPO lines are automatically deleted except the changed line.

I have checked in PPO line table there have a function which is deleting the PPO Lines, when we try to change the item code in PPO line. How can we bypass this please suggest me.

I have highlighted the function code present in table 5406

Item No. - OnValidate()

WhseValidateSourceLine.ProdOrderLineVerifyChange(Rec,xRec);