Question:
Hi,
here's the problem. I need to add an extra task to a routing. But I can only determine when this task has to be selected(dependency) by checking salesorder lines. I've already worked with functions in dependencies so I know I can use select statements etc to check my conditions. The only problem is that I dont know how I can determine the sales order. When the dependencies are performed the producion order isn't saved yet so it hasn't got a number yet. I only have to know how to determine the corresponding sales order.
Answer:
Here are my suggestions and some questions:
Suggestions: If you want to know sales order number before you save the sales order, you can consider using external number assignment.
Questions: The optional extra operation is selected once you know the sales order number, not when you create the production order (correct me if I am wrong). Production orders then take the decided routing (with/without the extra operation). Why in your object dependency you need to know the production order number?
Answer:
Hi,
the reason I need to know the sales order number is because I need to check the salesorder lines. In some cases the extra operation has to be selected in others not. And because I don't know a way to get the sales order nr when creating the production order I wanted to use the production order number( link salesorder -> production order)
The optional extra operation is selected once you know the sales order number, not when you create the production order This is correct. When I know the salesorder number I can check the lines. But I thought that the routing was created when the production order is created, No?