Create production order / work orders from open sales order items

Dears, when I create a production order from open sales orders, it also includes sales order items which have readily been delivered. How do I make sure it only takes open volumes on the S.O. when running this transaction?