How to cook common bean in mess tin in campfire during hikers camp ? Possible?
Assuming you have access to a food dehydrator or an oven that can be trusted at a low setting, you would be better off pre-cooking and then drying the cooked beans.    When you get to camp, just add boiling water and wait 15 minutes, and they'll be done.

This would save you the fuel cost of the long cook-time that most beans require, and allow you to season them in ways that would be difficult or impossible on the trail.