--- alias: user-guide-assign-production-order description: "This documentation describes assigning materials to existing production orders with specific conditions" --- # Assign Materials To Production Order :lock: ProductionOrder.**Assign** ## Overview This operation is used to assign one or more **Materials** to a **Production Order**. ## Setup No special setup is required other than to meet the preconditions of the transaction. ## Preconditions * The old **Materials** (if any) and new **Production Orders** are active and in the state Created, Released, In Progress or Completed. * The old **Materials** (if any) and new **Production Orders** must not be restricted. * The **Materials** to be re-assigned must be active. * If the **Production Order** has the option Validate Material Products set to `true`, the **Materials** to be assigned must have a **Product** which belongs to the reverse **Product** tree of the **Production Order** **Product**. ## Sequence of Steps 1. Optionally, review the **Production Order** details by expanding the **Production Order** section. 2. Add as many **Materials** as desired to the grid. 3. Select **Assign** to complete the operation. ![Assign Materials To Production Order1](images/Assign_Materials_To_Production_Order_Step1.png) This wizard provides the following additional options: * Apply Production Order priority to Materials - whether to set the **Material** priority with the **Production Order** priority. * Apply Production Order planned end date to **Materials** - whether to set the **Material** due date with the **Production Order** due date. * Account to old Production Order - whether the **Material** should still account for the old **Production Order**. * Account to new Production Order - whether the **Material** should account for the new **Production Order**. * Apply changes recursively to Sub-Materials - whether the changes apply recursively to all **Sub-Materials** that have the same type as the parent **Material**. * Remove from old Production Order - whether the **Material** will be removed from the old **Production Order**. ![Assign Materials To Production Order2](images/Assign_Materials_To_Production_Order_Step2.png) !!! info It is possible to define the default value for Apply change recursively for all Sub-Materials by editing the entry Context = `ProductionOrder.AssignMaterials` and Element = `ApplyToAllSubMaterials` in the [[guielementdefaultvalue-gt]] Generic Table.