2 Column Array in SAP ABAP A = 1, B = 2... ZZZ = ?

Posted by Techboy on Stack Overflow See other posts from Stack Overflow or by Techboy
Published on 2010-04-22T10:50:27Z Indexed on 2010/04/22 10:53 UTC
Read the original article Hit count: 305

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about abap

Related posts about sap