Rollback problem

The procedure in question writes directly into a static map when invoked. There is no transactional interaction with the database itself.
Using procedures that interacts with the database, using the ongoing transaction, will respect the rollback.

If you're ok with it, this question can/should be moved into the GDS sub-forum.