Start by preparing the filling. Peel and take away the seeds from the tomatoes. Cut in small pieces.
Peel and cut the onions and garlic cloves in small pieces.
In a frying pan fry the onion and garlic cloves for a few minutes.
Pour away the juice from the crushed tomato can, add this and the fresh tomatoes to the frying pan.
Flavor with the spices, and simmer until the liquid is gone.
Add the grated ham and stir together.
Butter an oven form and pour the tomato batter in the form.
Preheat the oven at 185 degrees Celsius.
Time to make the crumbles by crumble with your fingertips the parmesan cheese, flour, butter, salt and pepper.
Pour evenly on the tomatoes in the oven form.
Place in the middle of the oven for 15 minutes. Take out the pie and serve warm.