Hi guys,
First - I'm fairly new to M3 H5 scripts.
I've written a few, but I'm having trouble with this particular one which runs on MMS121, with the base program being either OIS300 or OIS301.
After opening a CO, or CO lines, the user is then selecting a number or order lines and going to Allocation (CTRL + 15), which opens MMS121. This allows them to cycle through the CO lines in MMS121, allocating LOT's to each one as they go.
Basically there's three things going on with this script:
1/. I'm appending columns to the grid to display LOT attributes against the balance ID.
2/. I'm adding the customer to the pane, so when cycling through multiple lines from OIS301 the user knows the customer.
3/. Checks allocated quantities to ensure it fits within the business rules (one LOT per CO line etc).
Now to the problem ... when the user enters the quantity to allocate, and hits the ENTER key, the quantity is allocated. The user then ... has to press the TAB key, or click the pane, before any of the F keys will register. I know this seems trivial, but the users do this A LOT and it adds a lot of keystrokes. We want the user to be able to enter the quantity to allocate, press the ENTER key, then be able to immediately press the F3 key to cycle to the next record.
How can I set the active element / or focus, back after executing the code so that the F keys are registered immediately without having to click or press TAB?
Script attached.
Thanks in advance,
Iain