Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

When Save Button in Module Pool

Former Member
0 Likes
366

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

2 REPLIES 2
Read only

Former Member
0 Likes
335

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.

Read only

Former Member
0 Likes
335

Hi,

Did you maintain number range object in SNRO? and how you define it?

Please check and reply,

regards,