Quickly knead a shortcrust pastry from the flour, the cold butter in pieces, the salt and the water and put it in the refrigerator for around 60 minutes. Then roll out thinly and place in the tart pan.
Peel the asparagus if necessary, usually the lower third is enough. Cut into pieces and blanch in salted water for 5 minutes.
Mix the ricotta, the eggs, the grated Parmesan and the spices into a homogeneous mixture. Spread the asparagus and the ham cubes on the dough and pour the mixture over it.
Bake for about 30 minutes at 200 degrees (top and bottom heat) until the tart is evenly golden yellow.