Stefan, try following in sqlplus ...
set serveroutput on declare n_num number; begin n_num := raknaupp.fakturanummer; dbms_out.put_line(to_char(n_num)); end; / PS: Tom, this function does a UPDATE and COMMIT, so it can NEVER be used in DML statement as it violates the purity requirements. HTH Raj ______________________________________________________ Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com Any opinion expressed here is personal and doesn't reflect that of ESPN Inc. QOTD: Any clod can have facts, but having an opinion is an art!
*******************************************************************************1 This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify ESPN at (860) 766-2000 and delete this e-mail message from your computer, Thank you. *******************************************************************************1