Where can I read more about when you have to apply BEE?

Is it compulsory to all businesses or only if you want to do business with government and other big businesses?