Number Range: RH_GET_NUMBER_RANGE
I need to know the last transaction number generated for a particular transaction type.
from the following sdn link I came to know that 'RH_GET_NUMBER_RANGE' is the relavant FM for this.
Inorder to execute the FM I need to know the parameters to be passed, they are..
all are char 2..
Can Anyone Help ?, Points will be rewarded..
Thanks in advance, Sudeep..
This FM gets you the number range based on the import parameters. It wont solve your pupose.
Check out table NRIV which stores all the number ranges. You might get some idea how to get the last number generated.
SELECT SINGLE * FROM NRIV WHERE OBJECT EQ RP_PLAN AND SUBOBJECT EQ SUBOBJECT AND NRRANGENR EQ NO_RANGE_NUM AND TOYEAR EQ '0000'.
Or else you can get it from the Parameter id of the transaction number. Just do a get <parameter> id.
Hope it helps.