I am creating a program to reset the passwords of users. It is a table control having user id and password. User ids and the new passwords can be entered there, and passwords can be reset.
I want to put a validation, where it will read the profile parameter (RZ11) and get the min password length (Current value field in RZ11) and populate an error if the password entered is less than the profile value.
How to go about this? Is there any function module to check this?
You can use function module RSAN_SYSTEM_PARAMETER_READ by inputing the desired parameter: login/min_password_lng.
If you test in SE37 t-code, thick the checkbox for upercase/lowercase letters.
There is one function module through which u get the user parameters.
p_werks = gs_parameters-parva. "this line wil give u the value for ur parameter.
gt_parameters is a table of type usparam and gs_parameters is the structure of type usparam.
p_werks is 1 field in which i want the value of the parameter.
If u fine the answer useful please give points.
I had asked about system profile parameter (RZ11), not user profile paramter.