You are just 17yrs and carrying 1 month pregnancy if occurs with abdominal cramp
First do a USG to confirm pregnancy with gestational age
or rule out underlying pathology if any that causes abdominal pain.Medical abortion
can be done up to 9 wk safely by using abortifacient drugs like Tab Misoprostol or Tab Mifepristone under observation or guidance of gynecologist as it may cause unnecessary excessive vaginal bleeding
and may require surgical method to complete abortion.
So consult with gynecologist and take suggestive measures accordingly.
Practice safe sex and use emergency pill/condom to avoid unwanted pregnancy in future