There are some limitations when using Replication Server unsupported operations.
When you enable replication for a stored procedure using sp_setrepproc or sp_setreplicate, Adaptive Server always runs the stored procedure within a transaction. If you have not explicitly run the replicated stored procedure within a transaction, Adaptive Server places an implicit begin transaction command at the start of the procedure.
If the replicated stored procedure contains nested transaction commands such as begin transaction, commit transaction, or rollback transaction, you might get errors when you run the procedure. For example, a rollback transaction command rolls back to the start of the stored procedure, rather than to the nested begin transaction command, which was the intended rollback point.