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: 

capture lost focus for a screen field !!

Former Member
0 Kudos
550

I was more into Visual basic programming so the event name "Lost focus" !!

Basically i want to validate a field after the user enters a value in that and before he moves to the next field.

how to do that ? if the value entered is wrong I will display a message using MESSAGE IXXX(FF) with ".....".

whats the event to be captured and where ? how do i code it ?

thks

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos
202

If it is module Pool program then you can use the FIELD Fieldname module Modulename under PAI event.

in side the module you can raise the error message.

If it is report programming then you can use AT SELECTION-SCREEN ON <PARMETER>.

and raise the error message.

2 REPLIES 2

former_member188685
Active Contributor
0 Kudos
203

If it is module Pool program then you can use the FIELD Fieldname module Modulename under PAI event.

in side the module you can raise the error message.

If it is report programming then you can use AT SELECTION-SCREEN ON <PARMETER>.

and raise the error message.

0 Kudos
202

FIELD Fieldname module Modulename under PAI event. Only works for ENTER key not to Lost Focus. Pls advise.