Hello and Welcome to ‘Ask A Doctor’ service.
I have reviewed your query and here is my advice.
Pain in upper abdomen with spasms and recurrence with strange bowel movements,
vomiting all indicate towards a
gastrointestinal infection as a most probable cause of the pain.
Hence I would advise you the following in such a situation:
Consult your Doctor for clinical examination.
Tests of stool and blood.
A course of a suitable antibiotic,
metronidazole, probiotics.
Activated
charcoal and a PPI like
Omeprazole.
Anti-spasmodic to relieve pain.
All these will help you to get a cure.
Take plenty of oral fluids and electrolyte solution to maintain hydration and electrolyte balance.
Hope I have answered your query.
Let me know if I can assist you further.