table name for number range
I need to get number range by passing document type and company code as in the case of OBA7 transaction.
i tried table NRIV but it needs many input like object id ,subobject id .i don't know what is that.
but i am having only document type and company code.
so any one can tell me ,is there any function module or table available to get number range ?..
thanks in advance.