Skip to Content
0

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

Sep 11, 2017 at 10:11 AM

68

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Mike Pokraka Sep 11, 2017 at 12:33 PM
3

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.

Share
10 |10000 characters needed characters left characters exceeded
Evgeniy Astafev 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.

Share
10 |10000 characters needed characters left characters exceeded