ulcer may be gastric or duodenal. nonspecific abdominal symptoms should always be dealt carefully. what your doctor has suggested is the right decision in my opinion. some blood tests like CEA can give a clue but not diagnostic. do not worry upper G-I endoscopy
are painless. proper local anesthesia
is required. consult you doctor.