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

Selection Screen input validation???

Former Member
0 Likes
860

I want to validate the entry at a selection screen even before it is displayed after a key press, ie, suppose i have a parameter of type n, then it should not allow a character type entry to be typed as input. It should not even allow the user to type a character type entry. How should i validate???

1 ACCEPTED SOLUTION
Read only

former_member212705
Active Participant
0 Likes
716

Hi Santosh,

Just declare your parameter as a type n.

Parameters : p_par type N length <whatever you want>.

Now it will not allow user to enter any character type in input box. only numeric digits will be allowed.

And for any further verification. write your code-->

At Selection-screen.

write your code for any other check.

Hope this resolves your issue.

Regards,

A.Trivedi

4 REPLIES 4
Read only

former_member214878
Active Participant
0 Likes
716

Keyboard stroke events are not possible in report screen like JavaScript or .NET .....

Read only

Former Member
0 Likes
716

I dont think Key press command you can capture. Possible solution that you can implement is write your validation logic on At selection screen event with error message

So when sometype invalid entry, system will give this as error message.

Regards,

Deepti

Read only

former_member214709
Participant
0 Likes
716

Dear Santhosh,

This kind of validation can be included in the AT-SELECTION-SCREEN event.

Just write the validation code below this event.

Regards

Dinesh

Read only

former_member212705
Active Participant
0 Likes
717

Hi Santosh,

Just declare your parameter as a type n.

Parameters : p_par type N length <whatever you want>.

Now it will not allow user to enter any character type in input box. only numeric digits will be allowed.

And for any further verification. write your code-->

At Selection-screen.

write your code for any other check.

Hope this resolves your issue.

Regards,

A.Trivedi