Hello community,
It's been several days that I'm stuck on the automation builder and MFormsAutomation, and any help is precious.
I am on the program MMS025 panel B on sort order 11 or 21. After processing and generating a GTIN code, I want to go to the next screen Panel E, with the data from the processing (Itno and POPN) according to the type ALWT in editing mode.
Unfortunately the code does not work.
It opens on the panel E but not with the right type, nor the right itno or Popn code.
Here is the code, I do not understand what is wrong:
const auto = new MFormsAutomation(); auto.addStep(ActionType.Run, "MMS025")
auto.addStep(ActionType.Key, "ENTER")
auto.addField("WWITNO", this.varITNO)
auto.addField("WWALWQ", this.varALWQ)
auto.addField("WWALWT", this.varALWT)
auto.addField("WWPOPN", this.varPOPN)
auto.addStep(ActionType.ListOption, "2")
const uri = auto.toEncodedUri();
ScriptUtil.Launch(uri);