I need to create a 2 column array in ABAP so that a program can look up a record item (defined by the letters A – ZZZ) and then return the number associated with it.
For example:
A = 1
B = 2
C = 3
…
Z = 26
AA = 27
AB = 28
…
AZ =
BA =
…
BZ =
CA =
…
…
ZZZ =
Please can you suggest how I can code this.
Is there a better option than writing an array?
Thanks.
you don’t need to lookup the value in a table. this can be calculated:
i didn’t test the program and it has pretty sure some syntax errors. but the algorithm behind it should work.