Thank you for the query.
It is very common that what is thought to be gallstones pain turns out to be caused by peptic ulcers. Sometimes this two diseases can give very similar symptoms. That is why you should have upper GI endoscopy
The other possible reason of such symptoms can be bile ducts blockage by gall stones
. This should be checked with liver
,GGTP and AP) and if those enzymes will be high, ERCP should be done.
Hope this will help.