I'm assuming that you're talking about notification generation after the defect recording in inspection lot.
When you come to know about defective BoM component, you'd need to reverse the Inspection lot and cancel the good receipt. Once it is done, make mvmt 262 and create return delivery for the component B. However, I'm not in favor of such a process.
I'll rather recommend inspecting the BoM components before they are put in for consumption. In any case, you should first inspect the material and then only it should be given for production.
Keep the process simple.
NJ