Fairly ambiguous and is often open to debate on it's correct
application.
Historically it has been used to politely ask someone at, say, a formal dinner, if they have farted or indeed, have
actually shat their smalls. The use of "have I" helping to ease the embarrasement of the situation.