welcome to HealthcareMagic
It needs to be seen where your friend has pain.If the pain is in the epigastric region that is just below the middle joint of rib cage
then he may be having gastritis
as he has vomiting
.Please tell him to get examined by a doctor and the doctor will see him and treat accordingly.