In primary dysmenorrhea, there is no underlying gynecologic problem causing the pain. This type of cramping may begin within six months to a year following menarche (the beginning of menstruation), the time when a girl starts having menstrual periods.