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

Module function automatically generates a sequential number

Former Member
0 Likes
621

Hello,

I need a function that automatically increase the numbering of a numeric field in a table Z in the data dictionary, such as when the number is generated in an accounting document.

Thank you

4 REPLIES 4
Read only

Former Member
0 Likes
583

Hello

consider creation of a new interval for an existing number range object or even creation of a new Z-number range object.

See transaction SNRO and its docu:

http://help.sap.com/saphelp_erp60_sp/helpdata/EN/2a/f9ff44493111d182b70000e829fbfe/frameset.htm

Read only

Former Member
0 Likes
583

create a number range object in the transsaction SNRO

and get the number using the FM 'NUMBER_GET_NEXT'

regards, sebastiá

Read only

Former Member
0 Likes
583

Moderator message - Please search before asking - post locked Rob

Read only

former_member776318
Participant
0 Likes
583

Hello,

You can achieve that through Number range Objects & then use the function module NUMBER_GET_NEXT to generate the next sequential number each time.

Regards,

Saurabh