Hi, I am having pain in right upper abdomen. Just below the rib cage. This happens whenever I eat outside in a hotel. I had this problem couple of weeks back, it had disappeared and now re occurred after having a  subway yesterday. What this cud be and can. U suggest some medicine.
Based on the details, it seems to be due to gastritis which occurs due to hyperacidity. The hotel food is generally more spicy and hence triggers more of gastric acids which may cause discomfort over upper central or right side of the abdomen as in your case. It might have also caused a gastric ulcer which gets aggravated from time to time creating problems. Please avoid spicy food. Take food in small amounts but at frequent intervals. Taking omeprazole capsule once before breakfast for one and a half months will give you relief. It is still worthwhile to remain in the follow-up of a doctor regarding this.