Is there permanent heal for stomach ulcer?

I ate food that was prepared with white maggi since then I started having heartburn, which finally result to severe pain m having at the upper part of my abdomen.what do I do doctor?