Yes. The script is used to bypass the first screen of IW51 + get an error message back if one exists. If not, it should stop at IW51 where I have a new flavor with some fields hidden. And yes, it does not happen if I run IW51 in sapGUI.
There are some required fields though. Could this be the problem?