Right upper abdominal pain can be due to cholecystitis (inflammation of gall bladder), stones in gall bladder, abscess under the diaphragm,
liver problems or due to duodenal ulcer. All of these can also cause the
pain to go to the back or the side. An ultrasound or CT scan of abdomen is may be required.
It is difficult to comment beyond this at this stage. Discuss these possibilities with your doctor.
Hope this helps. Please let me know if there is any thing else and do keep me posted.