Hi viewers,
I'm striving sample module pool program. I'm unable to get/retrieve the value from the screen. I developed the screen with three fields. First field name is username with input filed, second field name is password and third field name is push button.
For username input field name I have taken as zpassword-uname and for password zpassword-psw.
(Note: zpassword is the table name I have created and storing some values.)
After this I have choosen PAI event and I have clicked on flow logic option and it is redirected to flow logic for this program.
Here I have defined as:
DATA : WA_PSW TYPE ZPASSWORDS,
USERNAME TYPE ZPASSWORDS-UNAME,
PASS TYPE ZPASSWORDS-PSW.
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'LOGON'.
WA_PSW-UNAME = USERNAME.
WA_PSW-PSW = PASS.
SELECT * FROM ZPASSWORDS INTO WA_PSW WHERE UNAME = WA_PSW-UNAME ."AND PSW = WA_PSW-PSW.
ENDSELECT.
IF SY-SUBRC = 0.
MESSAGE USERNAME TYPE 'I'.
MESSAGE 'LOGIN SUCCESSFULLY' TYPE 'I'.
ELSE.
MESSAGE USERNAME TYPE 'I'.
MESSAGE 'HELLO VENKAT this is INVALID USERNAME AND PASSWORD' TYPE 'I'.
ENDIF.
ENDCASE.
ENDMODULE.
Finally I have created Tcode which is called as ZTEST and run the TCODE.
Screen is showing and action is performing but entered filed values are not retrieving. I mean input field values are showing empty.
ANYBODY PLEASE GUIDE ME HOW TO RETRIEVE THE VALUES FROM INPUT FILEDS? I HOPE AND WAIT FOR YOUR KIND INFORMATION.
Thanks
venkat