Really, the ultimate goal is to calm down your diaphragm, which is going through spasms for one reason or another. By filling your lungs, or your stomach, the diaphragm is then not given much room to move.
Of course if you are hiccuping for an extended period of time it could be a symptom of a larger problem.