Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT:FM for generating random password

Former Member
0 Kudos

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 .

6 REPLIES 6

Former Member
0 Kudos

Hi,

chk this FM ISB_RANDOM_CHAR.

Regards,

Kumar S

Former Member
0 Kudos

Hi,

fm : BBP_PASSWORD_GENERATOR

Reward pints

Former Member
0 Kudos

Hi,

You can use this RSEC_GENERATE_PASSWORD.

Reward some points.

Bye,

Anomitro

Former Member
0 Kudos

Hi,

You can use this RSEC_GENERATE_PASSWORD.

Reward some points.

Bye,

Anomitro

0 Kudos

HI great ,

i have one problem ..i want the password should have min of 6 charaters and max of 8 charaters . "RSEC_GENERATE_PASSWORD" "ISB_RANDOM_CHAR" i am unable give min and max charater lengths ..can it be possible

Former Member
0 Kudos

used the FM RSEC_GENERATE_PASSWORD