Alternative to "Retry on error": In an InputScript I use transaction VA02 to change a series of customer orders. I want to handle a case for which one of the orders is currently being worked on by another user. The command "Retry on Error" is already quite close to what I need, but I would like to adjust the waiting time and also perform a certain action if I cannot change the order in the script. Is there a suitable alternative to "Retry on error"?

Yes, you can use "Enter onError=...  wait=...". Example:

   ...
  Enter "/nva02"

Screen SAPMV45A.0102
  Set F[Order]   "...."
  Enter onError="continue"

 // Try 5 times, wating 1 sec each time
   Enter onError="continue" wait=1000
   Enter onError="continue" wait=1000
   Enter onError="continue" wait=1000
   Enter onError="continue" wait=1000
   Enter onError="continue" wait=1000

   // Skip this one, continue with list
   Enter "/n"

...

// VA02 2nd screen (order not blocked)
Screen SAPMV45A.4001

....

// continue with list
Screen SAPLSMTR_NAVIGATION.0100