ABAP se38 code generator Pattern.
Install the code. Add GUI status 'BASIC1' for the function group ZEDITOR_EXIT with cancel button having fcode:CANC.
Create a new pattern from ABAP editor using Utilites->More Utilities->Edit Pattern->Create Pattern
ZCODEGEN
*$&$MUSTER