pass a field from sales order to sales delivery based on the sales order number

I want to pass the sales order qty field to the delivery to compare and control the delivery qty(control table )
 i see the control table work on the same screen.