Detect ongoing transaction

Is it possible to detect if there’s an ongoing transaction? I have an inner method that needs a transaction, but it yields an error if there is already a transaction started.

I would try this property.

(not tested)

/Tommy