Hi,
You can set error message in OMCQ for following message numbers
M7-163
M7-254
Create PO by entering Latest GR date in PO and then receive GR.
Not sure about your purpose but there is another message number M7-033 which can also set as error too but you can try above error message numbers.
Regards,
Biju K