The first course of treatment for sphincter of oddi dysfunction is medication, which helps to control the sphincter of oddi spasms. When medications fail to improve the sphincter of oddi function and abdominal pain still exists, a sphincterotomy, during which the muscle is cut, may be recommended. Since a sphincterotomy can cause complications, it is used as a last treatment option for sphincter of oddi dysfunction.