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

Function module RSEC_GENERATE_PASSWORD

Former Member
0 Likes
2,000

hi experts,

when i was searching for some function module names i found a function moduel 'RSEC_GENERATE_PASSWORD' to generate a passward.when i used it in porgram then its giving the different outputs everytime.here i am writting this program.can anybody tell me what is the use of this function module?

REPORT YEX_PASS.

PARAMETERS : P_CHAR(40) LOWER CASE.

DATA : D_PASS(8),

D_LEN TYPE I.

D_LEN = 30.

CALL FUNCTION 'RSEC_GENERATE_PASSWORD'

EXPORTING

ALPHABET = P_CHAR

ALPHABET_LENGTH = D_LEN

FORCE_INIT = ' '

OUTPUT_LENGTH = 8

  • DOWNWARDS_COMPATIBLE = ' '

IMPORTING

OUTPUT = D_PASS

  • EXCEPTIONS

  • SOME_ERROR = 1

  • OTHERS = 2

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

WRITE : / D_PASS.

1 REPLY 1
Read only

Former Member
0 Likes
929

erm well, i dont really know this FM, but like it seem it is a random password generator.

And yeah if creates the passwords random so everytime you do it you get something else.

I dont really see where this is needed, but there might be total uncreative people who just dont wanna think of a new password, but let the computer generate it.