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

Generate sequence numbers

Former Member
0 Likes
930

Hi,

I am looking for an algorithm to generate alphanumeric sequence numbers in ABAP.

The sequence numbers should be in the following format

AAAA

AAAB

AAAC

.

.

.

AAAZ

AABA

AABB

AABC

.

.

.

AABZ

.

.

.

ZZZZ

Is there any built-in function module provided by SAP to accomplish this? Or something like a FOR statement as in C/C++?

Please help.

Helpful answers will be immediately rewarded.

Thank you.

2 REPLIES 2
Read only

Former Member
0 Likes
517

Hi,

I'm not sure, but maybe you can create a number range with SNRO for alphanumerical values

otherwise you have to create your own logic (you can use hexadecimal to ascii conversion in ABAP to increment the alphanumerical values)

Kind regards, Rob Dielemans

Read only

Former Member
0 Likes
517

hi thr...

kndly go through the following link. it contains info about converting numerics into alphanumerics. i think u can apply this to ur logic and wil be able to generate the alpha numeric numbers....

www.scribd.com/doc/416537/SAP-BC-ABAP-Programming

do reward if helpful