Clean and wash the beans. Cut beans into large pieces, halve green beans. Cook all beans in boiling salted water for about 10 minutes. Pour off, rinse with cold water and drain.
Rinse chanterelles briefly in a sieve, then dab dry well. Clean mushrooms, cut large ones in half. Peel and finely dice onions.
Fry the ham in a large pan without fat in portions until crispy. Take out and let it drain on kitchen paper. Heat 2 tablespoons of oil in the pan. Sauté the chanterelles in it for about 5 minutes.
Season with salt and pepper and remove. Steam onions in the frying fat until transparent. Sprinkle with sugar and let it caramelize. Deglaze with vinegar and 3-4 tablespoons of water, bring to the boil and simmer for about 2 minutes.
Season with salt and pepper.
Wash parsley and shake dry, chop finely. Pears wash, quarter and cut out the core. Cut pears into thin slices. Mix beans, chanterelles, parsley, pears and onion sauce well and leave to soak for at least 1 hour.
Break the ham into large pieces and carefully fold into the salad. Serve with Parmesan cheese in wafer-thin shavings.