Skip to Content
avatar image
Former Member

Need to reduce a UUID to 12 characters/Digits and more or less keep its unique property

Hello Together,

I what to reduce the length if a GUID to 12 characters (alphanumeric) but keep its unique (more or less)

I thought about calculating a Hash Key of a fixed length of 12. But I could not find a ABAP standard method that provide me a suitable calculation of a HASH with a fixed length.

Any other Ideas?

Kind regards

Markus

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 11, 2017 at 12:33 PM

    By it's very definition that should not be possible. Not sure as to how 'more or less unique' would work either :-)

    Any reason for not mapping a number range? The standard way to do this is to have a human readable key (number range) matched to a GUID - simply two fields in the same table.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 11, 2017 at 01:00 PM
    -3

    GUID looks like hex value. You can try to convert it from 16 to 32 notation. Or to the 62 notation (A-Z, a-z, 0-9). It can be easy to use with CONVERSION_EXIT_XXX_INPUT & _OUTPUT modules.

    Add comment
    10|10000 characters needed characters exceeded