Mix boiled potatoes, flour, egg, and spices into a dough-like consistency.
Split the mixture into two equal portions. Form one of these into a flat circle, about 8-9 inches in diameter and half a centimeter thick.
Spread olive oil in a pan and place the pancake in it. Distribute the ham and cheese over the pancake. Form the remaining potato mixture into the same sized pancake and place it on top. Cook on low heat for 5 minutes.
If you're not an expert flipper, coat a second pan of the same size with olive oil and hold the two pans closed facing each other. Turn them both over so the pancake falls neatly into the second pan. Cook the other side on low heat for 5 minutes.