I always get muscle cramp especially abdominal part during my sleep, why is that? How to cure?

Motility pain. At night your GI tract does a lot of house keeping and has some big muscle contractions that might be the cause of these cramps. Avoid constipation would be first. Avoid food know to produce gas would be second. Would also consider peppermint tea or ginger tea at night prior to bed.