The needful has to be done on your side, you should investigate if this all is controlled by an exit.
You did not even provide a professional info like posting the message numbers.
You are just posting: material is not maintained in the plant (XXX)
but what did you already do? Had you already looked into your material master? Can you tell if the material is maintained fully? Can you give evidence that the error message is wrong?