Try this in transaction OQB1 and Change the QM control key used in the QM
view for the material.
SPRO > Quality Management > QM in Logistics > QM
in procurement > Define Control key path.Check Invoice
Block indicator and message setting be a warning message or an error message.
In SPRO - MM - LIV - Define attributes of system messages
New entries and enter the message number 280. Else go to
SM30 and there enter the table T100S. in this table enter the value M8 280
U can block the invoice posting by activating the message
M8 280 in SPRO - MM _ LIV - Define attributes of system messages, enter the M8
and 280. make it as error.
QM Settings, QCC0 - QM in logistics - QM in procurement - Define control keys.check which control key assigned to your material master and change to that control key
DD