Hi Mohammad,
Your initial post you want to generate unique code like below.
File pattern is QPS.COMPANYCODE.CY/CN.CURRENCYCODE.UNIQUECODE
Ex: QPS.0111.CN.USD.0911242847812
UniqueCode have to generate using DDHHMMSSNNNRR (DD - Day, HH - Hour, MM- Minute, SS-Second, NNN - Milisecond, RR - Random Number)
And i have written the UDF only for that, where did you get the extra time stamp??
Regards,
Praveen.