If it is a ulcer problem , thats usually caused by bacteria , H. Pylori ,
Read this article about foods you can eat or avoid ,
https://www.tuasaude.com/en/diet-for-h-pylori/
Also found this quote about cabbage ,
"Cabbage is a stomach’s best friend. Like its trendier cousins Brussel sprouts...