If it's ALV, then maybe there's a default ALV layout variant defined in either the dev or in the production system.
First of all, instead of testing ME2M through your program, run ME2M directly both in dev and prod system, to make sure there's the same problem than the one with your program.
If the issue comes from a default ALV layout variant, then one solution is to define the ALV layout your program is expecting, assign it as a default to a batch user, and run your SUBMIT rm06em00 in background with this batch user...