Skip to Content
0
Sep 22, 2016 at 06:53 AM

Field validation is not working in module pool programming

340 Views

Hi Experts,

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

like mara-matnr,

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.

case sy-ucomm.

case 'DISPLAY'.

select single * from mara where matnr = field_Var.

if sy-subrc <> 0.

'''''''''''erroor message dislaI--------------

endif.

endcase.

endmodule

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.