Treatment of heartburn and erosive esophagitis