Application Development 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: 

how to display message while not filling a particular text n screen painter

Former Member
0 Kudos

I am displayed a user name and password columns in

screen painter.if i will not fill any one of the two fields

means then a message will be display.

My requirement is if i wont fill the "username field"

means then the cursor should not move to the

"password" field (i.e we should not able to enter passwords)

and a message should be displayed to indicating that

user name is invalid.

Kindly send me the coding for this one immediately.....

2 REPLIES 2

Former Member
0 Kudos

>

> I am displayed a user name and password columns in

> screen painter.if i will not fill any one of the two fields

> means then a message will be display.

> My requirement is if i wont fill the "username field"

> means then the cursor should not move to the

> "password" field (i.e we should not able to enter passwords)

> and a message should be displayed to indicating that

> user name is invalid.

> Kindly send me the coding for this one immediately.....

How about you immediately try to figure it out for yuorself? Read the SAP help on screen development and search these forums. Here's a hint, look at things like FIELD and CHAIN in your PAI...

kesavadas_thekkillath
Active Contributor
0 Kudos

its something like this..i don remember exactly...just go for F1 help..Every thing is there.

IN PAI.

FIELD:UNAME MODULE CHECK_USRNAME on REQUEST.

FIELD:UNAME MODULE CHECK_PASSWORD on REQUEST.

double click on the module name and write as below

IF UNAME id initial.

message 'Enter Username' TYPE 'E'.

endif.