Start making the dough. Mix butter, sugar and vanilla in a bowl. Stir in eggs one at a time. Add flour and baking powder in parts, mixing well each time. Knead a soft, pliable dough. Divide it into two parts: one large and the second half as small. Wrap the smaller part in film and put it in the freezer for 60 minutes.
Prepare the dough and baking pan. Lightly grease the baking pan with butter, spread most of the dough evenly over the pan, forming the sides. While the dough is freezing in the freezer, put the pan with the dough in the refrigerator. Put a layer of jam in the pan and spread it evenly over the entire surface with a spoon.
Place the pie in the oven to bake. Take out the frozen part of the dough and grate it on a coarse grater, filling the entire surface of the jam. Sprinkle 1 teaspoon of granulated sugar on top to get a more appetizing and ruddy caramel crust. Place the form in the oven preheated to 180 degrees for 35-40 minutes.