Many years ago I had a similar thing happen, with my BMW K1, the night before I was due to catch a ferry to France for a 10 day tour. It took me over an hour before I found the screw. It had fallen into the back of the alternator. If I had started the bike it would have smashed into the windings and ruined any hope of going on the trip.