When making a script based on transaction MM01, it's sometimes difficult to select the correct view: the other day I had to make a script that will only change profit center ( Gen Plant Data / Storage -view). Depending on the material type, we have more or less views available in MM01. (see attached screenshot create material. png).
There is a way in Studio to change the view Studio selects : after recording the script the view selection can, as a whole, be selected and duplicated. After duplicating the number of the menu-item can manually be changed in the script itself. With a if-loop the choice for the correct screen can be assured. (see attached screenshot MM01 Winshuttle Studio.png).
Enjoy !
------------------------------
Jan Ketele | Sr engineer release management
Xeikon Manufacturing NV | +3234431875
------------------------------