Hi
You can't make field mandatory with your if condition in SHD0. If customer is duplicate only in that case this field would be mandatory and this is not possible through SHD0. How did you manage to make this mandatory as per account group?
FYI we can make field mandatory account group wise through SPRO but again that would be for all customers not in case of your "If" condition.
Thank$