Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

dialog programming

Former Member
0 Likes
369

i have created two fields username and pasword and 3 buttons

ok cancel reset

how to validate the two fields by ok button in dialog programming.

2 REPLIES 2
Read only

Former Member
0 Likes
346

Hello,

Check this code

REPORT z_pass_word MESSAGE-ID zz .

data: wa like ztable.

PARAMETERS: p_user TYPE sy-uname,

p_passwd(10).

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-name = 'P_PASSWD'.

screen-invisible = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

at selection-screen.

SELECT SINGLE * FROM ztable INTO wa WHERE username = p_user

AND password = p_passwd.

IF sy-subrc <> 0.

MESSAGE e000 WITH 'Please enter valid user id and password'.

ENDIF.

Read only

Former Member
0 Likes
346

Hi,

YOu can refer this link:

Regards,

Ravi