You can use the BIN_VERIFY hook point activity to verify that the entered value is a valid bin for a material.
BIN_VERIFY
This activity is used specifically for the semiconductor industry.