SAP Abap ile random rastgele password şifre üretmek generate

SAP abap ile

SAP Fiori

 

 

 

 

 

 

GENERAL_GET_RANDOM_INT         Provides a random int within 0 and RANGE
GENERAL_GET_RANDOM_PWD         Creates a random (alpha)-numeric password
GENERAL_GET_RANDOM_STRING      Creates a random strings

 

RSEC_GENERATE_PASSWORD         Create Coincidental Password

 

REPORT ZEX_PASSWORD .Parameter: p_char(100) LOWER CASE.

Data: d_password(8),
d_len type i.

d_len = STRLEN( p_char ).

CALL FUNCTION ‘RSEC_GENERATE_PASSWORD’
EXPORTING
ALPHABET              = p_char
ALPHABET_LENGTH       = d_len
FORCE_INIT            = ‘ ‘
OUTPUT_LENGTH         = 8
IMPORTING
OUTPUT                = d_password
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_password.

 

 

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b824c11b-0701-0010-738f-e76dc3d29925?QuickLink=index&overridelayout=true&5003637733824

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)