Peel the onion and cut into small cubes. Wash the bell pepper, pat dry and remove the white side walls. Cut the ham into strips.
Prepare the spaetzle according to the instructions on the packet.
Heat the oil in a pan and fry the minced meat with the peppers, onions and ham. Season with salt, paprika and pepper. Add the tomatoes and the wine and let simmer briefly. Season everything well again.
Then mix the spaetzle with the minced meat sauce in a baking dish. Spread the grated cheese over it and then bake the casserole at 180 degrees for 30 minutes.