Application Development and Automation 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: 
Read only

FM for Random password in a specific pattern

Former Member
0 Likes
1,156

Hi Experts,

May i know if there is any FM to generate a password with SPECIFIC pattern like there should not be digits after 2 letters..etc if given a length as input?

Thanks

Dan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,036

chk this FM <b>ISB_RANDOM_CHAR</b>

Hi Experts,

May i know if there is any FM to generate a password with SPECIFIC pattern like there should not be digits after 2 letters..etc if given a length as input?

Thanks

Dan

6 REPLIES 6
Read only

Former Member
0 Likes
1,036

there is no such FM...u need to write code internally in ur program to handle this.

Read only

Former Member
0 Likes
1,037

chk this FM <b>ISB_RANDOM_CHAR</b>

Read only

0 Likes
1,036

Hi,

Thanks a lot!

Can you also tell me how to assign this generated pass word for a document sa VBELN?

Read only

Former Member
0 Likes
1,036

See the code

Password Field on Selection-screen

The following code sets a PARAMETER to be a password input field, where for security

purposes only *'s are displayed on the screen during input

i.e. Password: *******

Parameters: p_password like sy-uname. 

*******************************************************
*AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN OUTPUT. 
loop at screen. 
  check screen-name eq 'P_PASSWORD'. 
  move: 1 to screen-invisible. 
  modify screen. 
endloop.

Read only

Former Member
0 Likes
1,036

Hi,

Also you can use the above FM's & class cl_abap_random to set the seed so that you can generate consecutive passwords in different sequences.

it is better that the passwords should not be in sequence.

Award points if you find it help ful.

Read only

0 Likes
1,036

Hi,

Also you can use the above FM's & class cl_abap_random to set the seed so that you can generate consecutive passwords in different sequences.

it is better that the passwords should not be in sequence.

Award points if you find it help ful.