For the ham in bread dough, peel and chop the onion and garlic.
Put the rolled ham in a pot and cover with water. Add the onion and garlic and the peppercorns to taste and cook the ham until soft, about 1 1/2 hours. Let it cool down in the water.
Dissolve the yeast in lukewarm water. Add flour and salt and knead with lukewarm water to a smooth dough. Let it rise in a warm place until its volume is noticeably increased.
Heat the oven to 200 °C.
Knead well once again and now roll out the bread dough. Wrap the cooled, well-drained ham in it and decorate it with remaining pieces of dough.
Let it rise again while the oven heats up to 200 °C.
Bake the ham in the bread dough for the first 10 minutes at 200 °C, then reduce the temperature to 170 °C and finish baking for about half an hour.