Peel and chop the onions. Put the oil with the cut onions and ham in a saucepan and sweat well. Mix in the pepper, paprika, flour, herbs and sour cream.
Brush the tray with margarine and spread the bread dough on top. Apply the onion mixture to the bread dough. Then sprinkle the whole thing with breadcrumbs as desired and bake in the oven for 40 minutes at 170 ° C.