The same thing happened to my friend's Maxima. What is your mileage?
He tried to diy but he could not prevent the SES lamp from coming back. Finally took it to the Nissan dealership and they pretty much raped him. Charged $380. EVAP canister purge valve.
So I guess BMW rapes people as well, only a lot worse.