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

Number Range

Former Member
0 Likes
775

Hi All,

I created one Z table and one dialog program for maintain that table.

In that i have one field which has to be maintained programatically just like PO number. For every new record that has to be incremented by one.

How can i do this.

Regards,

Ashwin

6 REPLIES 6
Read only

Former Member
0 Likes
752

CReate a Number range in SNRO transaction.

IN your program you have to use the FM NUMBER_GET_NEXT to get a unique number every time.

Regards,

Ravi

Read only

Former Member
0 Likes
752

from ur program ur inserting data into the table....before that declare a variable as

data: val type i.

select max(field) into v_field from ztable.

val = v_field + 1.

ztable-field = val.

update other values of ztable...

insert ztable.

Read only

Former Member
0 Likes
752

Hi,

Try the FM :GET_NEXT_NUMBERS

Regards,

Anji

Read only

Former Member
0 Likes
752

Hi

,

You need to create a Number Range object for this one. in the Transaction code SNRO, Create a Number Range object in this one. and use the below function module to get the next number every time and store that next number in that field

<b>GET_NEXT_NUMBERS

RH_GET_NEXT_NUMBER</b>

Regards

Sudheer

Read only

Former Member
0 Likes
752

Hello,

This can be done with Tcode SNRO:

All the use the FM SWU_NUMBER_RANGE_CREATE

Vasanth

Read only

Former Member
0 Likes
752

HI Guys,

Thanks for ur replys.

But i created a ztable, so how can i create a number range.

Regards,

Ashwin