As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
DURING CRUISE, AT APPROX 28,000 FT, THE CREW RECEIVE A FLAPS FAIL MESSAGE. THE CREW COMPLIED WITH THE QRH AND AN EMERGENCY WAS DECLARED. THE AIRCRAFT LANDED SAFELY. MAINTENANCE REMOVED AND REPLACED THE RT SIDE FLAP BPSU. OPERATIONAL CHECKS GOOD. AIRCRAFT OK FOR SERVICE. (K)