on 10-26-2007 8:47 AM
Hi All,
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..
NO_RANGE_NUM
OBJECT_TYPE
PLAN_VERSION
all are char 2..
Can Anyone Help ?, Points will be rewarded..
Thanks in advance, Sudeep..
Hi 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.
Lokesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.