Treating the pain of gastric and duodenal ulcers, or inflammations of the esophagus accompanied by gastroesophageal reflux (reflux of stomach acids into the esophagus).