Cooking burgers would probably be easiest done either in a wire grill as in a BBQ or in a pan...........beans can be cooked in the can provided you open it first or it may explode!
Also because a tin can has a narrow base and high sides it's the wrong shape for cooking in, you're liable to get half burning and the rest cold, and it's a bit difficult to stir a full can of beans.
But beware, often these days tin cans can have coatings on the inside which is there to help preserve the food, but may not be the best thing to cook in!
If you take one ex mill pan (the square ones) you could fry your burgers and then add the beans to heat..........easy as......and one pan is no where near as heavy as the can of beans!
Smoggy