‎2010 Aug 17 6:34 AM
Hi
On pressing save button some document number should be generated starting from 0. But when you running program second time document number is not incresing.
i have already created in Object & number range. i am also use the function NUMBER_GET_NEXT.
IN PAI
when i am given the condition of IF sy-ucomm = save and number is not initial SO PROGRAM OUT OF IF Condtion.
when i am given the condtion IF sy-ucomm = save and number is initial so pragram in IN Condition & read the mesaage But document number is not increasing.
Pls Help Me....
Vinod Gupta
Moderator message: nearly duplicate question, please continue to follow up in your first thread.
locked by: Thomas Zloch on Aug 17, 2010 11:09 AM
‎2010 Aug 17 6:55 AM
Hi,
You can use
clear lv_num.
Select max( num ) from table into lv_num.
lv_num = lv_num + 1.
this would be your new number incresed by 1.
Hope this helps.
‎2010 Aug 17 7:28 AM
Hi,
Did you maintain number range object in SNRO? and how you define it?
Please check and reply,
regards,