Timing question (setting a teco flag)

I am confirming a maintenance order and have a request from the company to teco the order at the same time. Therefore, when I go into the order to confirm, I run an input script where I do the confirmation and then go to the order in 'change' and set the teco flag. However, my timing is out as the system wants to go to the change order screen too quickly. Is there a command that I can use to make the system wait until the confirmation has been completed, prior to going to the change screen to set the teco flag?

In cases such as this the statement "Retry on Error" is normally the best choice (see documentation). Sometimes the "Enter" command's  "wait=..." option is helpful as well, but since the required waiting time depends on system load, this is not 100% safe.