‎2010 Mar 29 10:13 AM
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.
‎2010 Mar 29 10:16 AM
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.