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
617

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
579

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
579

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
579

Moderator message - Please search before asking - post locked Rob

Read only

former_member776318
Participant
0 Likes
579

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