In a small saucepan, heat beans or lentils with ketchup and curry powder until warm. Preheat broiler.
Spread mixture on top of pita bread. Sprinkle with onion, then top with cheese to cover. Place under broiler until cheese melts. Watch closely.
Remove to serving plates. Pile alfalfa sprouts on top and decorate with tomato slices. Serve at once.