Yosef Karo, Translation:Shulchan Aruch — Orach Chaim 355…
“ Paragraph 2 - If a toilet is made above the water, it is permitted if there are walls suspended from it. These walls must be made to direct the waste, but if they are made for privacy, they do not make it allowed. If one makes a panel closer than three tefachim such that the feces will fall onto it before falling into the water, walls are not necessary, because the feces fall by their own force in the karmelit, and it is allowed. This is also the case for a toilet that is made such that the feces first fall onto a wall and then roll and fall into the karmelit. ”
