Skip to Content
0
Former Member
May 13, 2008 at 09:21 AM

URGENT:FM for generating random password

2118 Views

hi ,

to generate random password currently we are using following code

CALL FUNCTION 'RANDOM_C_BY_SET'

EXPORTING

len_min = 8

len_max = 8

char_min = 1

char_max = 36

charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' "c_text

IMPORTING

rnd_value = w_password.

now when i am running it i am getting random values but along with some spaces are coming . can you suggest me some other FM which will give me a value charset i send .look i am want a random using numbers and charcters .

please suggest .