Hit on the noggin (4)
(Other definitions for bean that I've seen before include "Edible seed" , "Seed of a leguminous plant" , "Nut" , "Haricot or runner?" , "Edible legume" .)
(Another definition for bopped that I've seen is " Hit hard (while dancing?)".)