Good day,
I need the procedure in Warehouse Shipments where the Warehouse Header is deleted/removed as soon as the last line in the Warehouse Shipment Lines has been posted.
I used the event recorder and searched in the base code but with no luck.
Here are my findings thus far.
In Codeunit 5763 "Whse.-Post Shipment" all the posting is handled in the procedure "Code"
One of the last procedures "OnAfterPostWhseShipment" still refers to the Warehouse Shipment Header. Which indicates even after posting the Warehouse Shipment the header still exists.
After the code Procedure in Codeunit 5763 "Whse.-Post Shipment" we return to codeunit 5764 "Whse.-Post Shipment (Yes/No)". At the end of the "Code" prcodeure in Codeunit 5763 we have a procedure OnAfterCode(WhseShptLine) that is the last reference of the whseShptLine.
We are then returned back to the Warehouse Shipment Card which is the end of the action.
I never saw code that actually deletes the Header from the Table, but I did see in the eventrecorder that the OnPageClose for warehouseShipment Card was called as well as the OnQueryPageClose.
Question: How can I prevent the WarehouseShipment Card from closing adn the WarehouseShipment Header from being delteted of the table even after all the lines have been posted?


Report
All responses (
Answers (