A ppi is used to treat ulcers; gastroesophageal reflux disease (GERD), a condition in which backward flow of acid from the stomach causes heartburn and injury of the food pipe (esophagus); and conditions in which the stomach produces too much acid.
Hope this helps! :)