Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
You have to create a BigDecimal value from the value returned by Numeric.sequence, which is an int.
I think this will work:
new BigDecimal(Numeric.sequence("TRAB_SEQUENCE",context.last_id,1))
new creates a variable of type BigDecimal, and it is set to the value returned from your call to sequence.