Unbearable pain in upper abdomen and throwing up, what could be the cause and cure?

Please see a Doctor. There are many different diseases that can cause these symptoms, many benign, some serious. It is impossible to make any reasonable educated guess based on your description. We are a "hands-on" profession. Please make an appointment to see a primary care doctor asap. A thorough medical history, physical exam, lab tests+/-radiology tests may be needed to get to the bottom of this. Good luck !
Go to the ER. . This could be many serious problems including perforated ulcer, acute cholecystitis, pancreatitis. You need to be seen and evaluated by a doctor.