Hi,
Go to transaction SE18 and enter BADI -> BADI_MATERIAL_CHECK.
Create your own implementation for this BADI.
do implementation for BADI method: CHECK_DATA
this method has an importing parameter WMARA. which has both the fields material (MATNR) and material type (MTART).
so check based on your material type whether material is filled. if not stop for furthur action.
for example:
if WMARA-MTART = 'FERT'
if WMARA-MATNR is initial.
error message.....
endif.
endif.
Let me know if its not clear.
Regards,
Prasad