Iam facing little trouble in validating field in module pool program,cannot able to find the where the problem is,
The details are some thing like this,
1:i have added a field in screen for of type material number
2:for validaton of that field i have written module validation.
3:module is called in PAI of screen.
PAi of screen.
field field_var module validation------------>written like this.
in module i have validated the fielld again mara table
module validation input.
select single * from mara where matnr = field_Var.
if sy-subrc <> 0.
'''''''''''erroor message dislaI--------------
the problem is its not displaying the error if wrong material number is ebtered and display push button is pressed.
while debugging also ints not going in PAI module after push button is pressed.
can anybody help.