AFTER DIALOG clause is executed before the DIALOG statement is completed. A dialog can be completed either when the cursor moved out from the last field included into the dialog, or when the ACCEPT DIALOG keywords are executed. The AFTER DIALOG clause is not executed, if the dialog is terminated by means of the EXIT DIALOG keywords.
If the AFTER DIALOG statement includes the NEXT FIELD or CONTINUE DIALOG keywords, the DIALOG statement will continue its execution, so it is advisable to add these instructions only in the form of conditional statements.
DIALOG
...
AFTER DIALOG
IF cuts_name IS NULL THEN
NEXT FIELD cust_name
END IF
END DIALOG