SAP Message KD258 - Final delivery not entered for the order. It is not technically completed

Diagnosis
If you want to settle a production order to a material, you must firsteither enter the final delivery for it, or close (complete) ittechnically because settlement leads to an update of the moving averageprice for the material. The total delivery quantity is required forthis. If the order is one which cannot be delivered because, forexample, it produces 100% scrap, you can close it technically instead.Settlement is than to the price difference account.
By the settlement period, no final delivery had been entered for thisorder, nor had it been technically closed (completed). This means thatyou cannot settle it.

Procedure
Before settling, either set the order to "Technically completed" orenter the final delivery.

49900Final delivery and delivery date for qty = zero
50979Actual delivery date after autom.GR with quantity 0
31305CO88: Checking the procurement quantity...