Batch Order on Production Module.

Hi everyone,

I’m trying to make an automatic batch order in the production module but I can’t figure out how to do this. I have tried with the same code that works with a production order but it doesn’t work with the same item I use to make the batch order manually.

Does anyone have any idea on this topic?

Thanks and regards.

By the way I’m working on AX 2012.