It might be a case of gastritis
or chronic pancreatitis
Child with gastritis usually get these symptoms.
Treating them with anti acid medications will cure them.
Pain getting relieved after some antacids is pretty diagnostic.
If the pain persists do an ultrasound
of the abdomen .
I hope your child gets well soon