As I said earlier declare the code:
FIELD bankn MODULE check_field ON INPUT. "Under PAI of screen 9000
Double click the module check_field, create this module in the main program or include.
MODULE check_field INPUT.
If (Table)-BANKN NE (table)-bvtyp.
MESSAGE wXXX WITH text-XXX.???
ENDIF.
ENDMODULE.