Making Certain Quantites of an Assembly

I have a product with multiple sub-assemblies. But I need only a certain number of these sub-assemblies to be produced.

Which statements should I use in the process node so that only these certain number of sub-assemblies are sent to the component container/buffer?

Thanks in advance.

I haven’t tested this, but here is an idea.

You may need to create whole assembly step(s), and then can use either Detach or GetAssembly to get the products to a list, which allows you to use SelectProducts to get X number of products to another list. This list can then be given to e.g. TransportOut, and rest deleted using Remove statement.