To prepare marinade, mix vinegar with alt, sugar, pepper and bring it to boil.
Cut onion into half-rings, pour it with hot marinade and cool.
Cut cucumbers and ham into thin stripes, slice tomatoes.
Mix prepared ingredients, dress with mayonnaise.
When serving, season the salad with greens.