Hi Ugur,
the cancellation of commands does not happen between two SQL commands, where the user could check for the flag.
Instead it happens during the execution of plan operators at a much lower SAP HANA internal level.
So there in fact is nothing you can do to your SQL code to make it easier to be cancelled.
- Lars