‎2008 Nov 11 7:02 AM
Hi Friends,
I have five passwords in my ztable.
Now my requirement is to validate password, if i enter a password ,then it should not accept the previous five passwords which are in my ztable.
i tried with concatenation, but it is not working properly.
whether I need to compare each password independently or is there any other way.
Could any one plase help me with piece of code.
Thanks in advance.
Regads,
kumar.
‎2008 Nov 11 7:10 AM
Hi,
U can use
SELECT *
FORM ztable
WHERE PASS = <NEW_PASS>.
IF sy-subrc = 0.
MESSAGE 'Password already Present.' type 'E'.
ENDIF
‎2008 Nov 11 7:10 AM
Hi,
U can use
SELECT *
FORM ztable
WHERE PASS = <NEW_PASS>.
IF sy-subrc = 0.
MESSAGE 'Password already Present.' type 'E'.
ENDIF
‎2008 Nov 11 7:11 AM
Hi Kumar,
You need to compare the password with all your stored passwords in z table. You can take all entries of z table into an internal table and use loop endloop statement.
Thanks.
Nitesh
‎2008 Nov 11 7:11 AM
Hi,
Use a simple select query ,,,
Select password from ztable where password = 's_pwd'
if sy-subrc = true
"pwd present "
end if.
Regards
Renu
‎2008 Nov 11 7:18 AM
Hy Kumar,
Mark the password as key field in ztable....That will satisfy u r requirement
Regards
Sas
‎2008 Nov 11 7:22 AM
Hi,
Take all the entries of your ztable in itab.
Then using loop compare it with the given password.
if it matches give message
Thanks & Regards
‎2008 Nov 11 8:30 AM