Carlos, June 13, 2018 - 6:36 pm UTC
The second options looks like the solution. The first one will not compile on enivronments where apex is not installed (because v function isn't available). But the second should work always the way i want...
Thanks a lot for your answer,
Carlos
June 14, 2018 - 1:10 am UTC
I got this useful tip from John Scott as well
"If that routine is called a lot, I’d use sys_context('APEX$SESSION', 'APP_USER') rather than V() for performance reasons. Also helps if it’s possible that APEX isn’t installed (hence no V function)."
which might help you out