If the creation of the Declaration Document did not go through when the Sales Order was shipped, it is possible to create the Declaration manually, either from the Delivery Agreement or from the Shipping order?.
This can only be done when the shipment order has been marked for shipping? posted?
From the Delivery Agreement