Some people swear by anise or fennel seeds, which are gastric stimulants. Acidophilus will keep your intestine in healthy working order. Papaya enzyme just after a meal may also help. Other strategies would be to select beans that are naturally low in the difficult sugars. The best are Anasazi beans, a mutant variety of pinto beans that look much prettier.
Black beans are also very good.
Some of the worst offenders are pea beans and navy beans. You can also ease the problem somewhat by soaking the beans overnight, then throwing away the water and replacing it with fresh water for cooking. People who eat beans regularly are less likely to have problems. So rather than staying away from these extremely nutritious foods, go for it. And certainly give Beano a try.