Hi,
You need to go to respective tables (transaction table) and get the last number used. I.e. for business transaction COIN, you need to go to table COEP and get the last number in the table.
Note that a number range might be assigned to multiple business transaction in KANK, means you might need to search few tables here.
Thanks,
Ong Yang Lim