Oracle Solution for Error ora-01721

Solution for Oracle Error ORA-01721

ORA-01721: USERENV(COMMITSCN) invoked more than once in a transaction

What triggered the Error:

The USERENV('COMMITSCN') function can only be used once in a transaction.

What should we do to fix it:

Re-write the transactioin to use USERENV('COMMITSCN') only once