INPUT control blocks execution order

This table shows the order in which the runtime system executes the control blocks in the INPUT instruction, depending on the user action:

Table 1. Control Block Execution Order for INPUT
Context / User action Control Block execution order
Entering the dialog
  1. BEFORE INPUT
  2. BEFORE FIELD (first field)
Moving from field A to field B
  1. ON CHANGE (if value has changed for field A)
  2. AFTER FIELD (for field A)
  3. BEFORE FIELD (for field B)
Changing the value of a field with a specific field like checkbox
  1. ON CHANGE
Validating the dialog
  1. ON CHANGE (if value has changed in current field)
  2. AFTER FIELD
  3. AFTER INPUT
Canceling the dialog
  1. AFTER INPUT