Am currently calling a error message for mm01 in a user exit
if the batch managment is checked for the materil, shelf life is a must. so if not error message should pop up, but in my case the message comes with sucess message icon in green color.
this is the code
message E001(00) with 'Enter Minimum Shelf life'.