Gastritis is a condition that affects the lining of the stomach causing pain and inflammation. It is caused due to infection, use of certain medicines, injury, etc. X Flam Mr Tablets is a medicine used to relieve pain due to muscle spasms it may not be effective for gastritis.