Finely dice the onions and coarsely grate the carrots. Then heat the oil in a saucepan. Sweat the onion cubes and the grated carrots in it. Add the sugar and let it sauté briefly.
Add the peeled tomatoes and stock to the vegetables. Salt and pepper everything. Cover the soup and bring to the boil and simmer over low heat for 15 minutes.
Meanwhile, dice the cooked ham. After the cooking time, puree the soup and add the whipped cream. Bring the soup to the boil again and then season to taste.
Pour the soup into bowls and sprinkle with ham, parsley and baked peas.