Define function button in GUI status with functional type ‘E’ – Exit command.
In Process after input call module at exit command as follows:
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
And implement module:
MODULE cancel INPUT.
* Just leave the screen without checking any obligatory fields
LEAVE TO SCREEN 0.
ENDMODULE. ” CANCEL_POPUP INPUT