No, endoscopy for duodenal ulcer will not aggravate your retinal detachment which has been operated on successfully earlier, but make sure you don’t strain hard in coughing or vomiting while the procedure is being done.