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

UserID & Password Validation

Former Member
0 Likes
547

Dear Friends,

I am developing one application using module pool programming.

The initial screen has User ID and Password fields.

I want to keep the User ID field strictly alphanumeric and have subroutines in place to check that.

What I want is that the cursor should remain at the User ID field whenever I press TAB or Click on the Password input field after entering a non alphanumerical User ID.

How can I achieve this?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
483

That's not the nature of the SAPGui... it works in "block mode" which means the application server (and hence your ABAP) does not see the user's data values until it is sent from the front end... so unless you build your input fields in a front-end control (such as in the demo program SAPHTML_EVENTS_DEMO) and have "loss of focus" style validation in that layer (e.g. via Javascript), you won't be able to do this.

Jonathan

2 REPLIES 2
Read only

Former Member
0 Likes
484

That's not the nature of the SAPGui... it works in "block mode" which means the application server (and hence your ABAP) does not see the user's data values until it is sent from the front end... so unless you build your input fields in a front-end control (such as in the demo program SAPHTML_EVENTS_DEMO) and have "loss of focus" style validation in that layer (e.g. via Javascript), you won't be able to do this.

Jonathan

Read only

Former Member
0 Likes
483

Thanks Jonathan!