It is important to know which region of your abdomen is painful as we divide abdomen into 9 compartments and each has a different pathology.From your description i guess it is cetnral part just below where ribs divide. It could be gastritis
and i guess the cause for this is anxiety
and irregular meals. Be regular with you meals and shun anxiety. If you can avail of herbs I can suggest herbal cure for it.
you can start with mint pomegranate seeds onion ginger coriander leaves pinch of black pepper tomato salt and sugar beat in mixy and make a paste. Have this with meals, it will act as carminative and appetiser and reduce gas and pain.
Dr. Rajesh Lakhanpaul