Hi,
I was under the impression of you need to raise an Error with particular line details. If you are using confirmation boxes then the code can be simplified.
******************
ProdOrderComponents.SETFILTER(ProdOrderComponents."Routing Link Code", 'SYS');
ProdOrderComponents.SETRANGE(ProdOrderComponents."Prod. Order No.", "No.");
ProdOrderComponents.SETFILTER(ProdOrderComponents."Qty. Picked", '>0');
ProdOrderComponents.SETFILTER(ProdOrderComponents."Qty. Picked (Base)", '>0');
IF ProdOrderComponents.FINDSET THEN
BEGIN
IF CONFIRM('Prod. Order is not fully picked', FALSE) THEN
EXIT;
END;
******************
Try this code, and its bettter to have before ChangeStatusForm.ReturnPostingInfo(NewStatus,NewPostingDate,NewUpdateUnitCost); <- this line.
Hope it helps.