Skip to Content
avatar image
Former Member

Create Random String

Hi, how can I build a string which contains random text? I only know RND which does this for numbers. Thanks in advance. Axel

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Mar 07, 2007 at 01:57 PM

    Hi Axel,

    I don't think there exists a function. I only know a workaround:

    CHR(RND(0,26))&CHR(RND(0,26))&CHR(RND(0,26))&CHR(RND(0,26))

    This would be an example for a 4-character random string.

    Just repeat the part "&CHR(RND(0,26))" for every character you need more.

    Best regards,

    Benni

    Message was edited by:

    Benjamin Leunig

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      What about building some RFC around function modules like 'GUID_CREATE' ?

      Best regards,

      Guillaume