2008 Dec 03 7:31 PM
Hello friends,
I have built a custom table and this table has the material number field. CUSTOM field, ZMATNR.
We fill data into this table by a program and this program has to generate a new number next in sequence and insert this number into this table in the field ZMATNR.
I guess I can use the FM - NUMBER_GET_NEXT to generate the next number but am not sure as how would this help me.
ANy suggestions.
Ster
Function module Documentation covers every thing check it once
Edited by: Vijay Babu Dudla on Dec 3, 2008 10:24 PM
Hello friends,
I have built a custom table and this table has the material number field. CUSTOM field, ZMATNR.
We fill data into this table by a program and this program has to generate a new number next in sequence and insert this number into this table in the field ZMATNR.
I guess I can use the FM - NUMBER_GET_NEXT to generate the next number but am not sure as how would this help me.
ANy suggestions.
Ster
Function module Documentation covers every thing check it once
Edited by: Vijay Babu Dudla on Dec 3, 2008 10:24 PM
2008 Dec 03 7:35 PM
I guess you could start by reading the FM documentation. It's pretty good.
Rob
2008 Dec 04 1:29 AM
HI,
for this u need to create an entry in SNRO transaction with the field of the ztable and maintain a number range there and call the above Fm.it works.
2008 Dec 04 3:22 AM
Hi,
I think you can generate next number without using FM.
first, you need to select the max material number in the table and then add 1 to it, last you can save it in the table.
You can have a try if you are not familar with that FM.
Regards,
Chris Gu