We are looking into the use of delivery consolidation fields (MWS010 - parameters 540 & 545) in combination with delivery regrouping (parameter 305). This will only be used for COs.
We need to use AHATID as a consolidation field (order line attribute), because we need external logic to determine the consolidation value as it depends on the customer's wishes. This works well if we enter the orders via API, because then we can enter the attribute value before the delivery is created.
However, our Customer Service often adds order lines in a CO in OIS101. Then the delivery line is already created before we can enter the attribute value. As a result, the delivery line is added onto a delivery with the wrong consolidation values.
When we release the preliminary deliveries to a firm delivery, then the consolidation fields are checked again and the correct delivery consolidation is performed. The problem is that we don't see the correct preliminary deliveries until we release.
Is there any way to trigger the recreation of a delivery (by API) so that we get the correct delivery consolidation after changing one of the consolidation fields?