your field validation should be in PAI of screen 9000,
FIELD BANKN MODULE check_bankn ON INPUT.
in the program declare the module.
MODULE check_bankn INPUT.
If (custom table)-BANKN NE (custom table)-bvtyp
MESSAGE wXXX WITH text-XXX.
ENDIF.
ENDMODULE.