ā2008 Dec 11 7:49 AM
Hi,
In the function module 'NUMBER_GET_NEXT' the import parameters obligatory are 'NR_RANGE_NR' and 'OBJECT'. I have a problem with the parameter 'OBJECT' because I don“t know which Object to use. Could you tell me please how can I create a new Object in the table TNRO?
Thanks in advance.
Trini.
ā2008 Dec 11 8:06 AM
ā2008 Dec 11 7:53 AM
Hi,
Check this link
[http://www.saptechnical.com/Tutorials/ABAP/SNRO/SNRO.htm|Link]
Regards
ā2008 Dec 11 7:59 AM
Sorry Rajvansh,
I can“t see the link . Could you please forward the link again?
Thanks.
BR.
ā2008 Dec 11 8:06 AM
ā2008 Dec 11 8:33 AM
ā2008 Dec 11 8:06 AM
ā2008 Dec 11 8:34 AM
Hi,
It is not allowing me to paste the exact link.
Check this search result. First result has step by step with screen shot.
http://www.google.co.in/search?hl=en&q=createnumberrange+object&meta=
Regards
ā2008 Dec 11 8:36 AM
Hi Trini,
Go to SNRO tcode enter a name for the object to be created and there is a create button just press it.
give subobject as S_CARR_ID ( data element for carrid)
and CO_RMZHL in the number length domain
if you want you can select the year flag and % warning.
then create a simple program to update the SCARR table to have 01, 02 etc as CARRIER ids
now you maintain the number range values in the same SNRO Tcode
declare a variable
data number type nriv-nrlevel
now you can call your fm NUMBER_GET_NEXT
object = "here the object you created in SNRO Tcode
QUANTITY = '1'
SUBOBJECT = '"here the CARRIER id just you updated in SCARR table
TOYEAR = '0000' "to year flag if you set it
IGNORE_BUFFER = ' '
IMPORTING
NUMBER = number(just you declared above)
QUANTITY =
RETURNCODE =
EXCEPTIONS
INTERVAL_NOT_FOUND = 1
NUMBER_RANGE_NOT_INTERN = 2
OBJECT_NOT_FOUND = 3
QUANTITY_IS_0 = 4
QUANTITY_IS_NOT_1 = 5
INTERVAL_OVERFLOW = 6
BUFFER_OVERFLOW = 7
OTHERS = 8
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Best Regards
Ramchander Rao.K