Your friend should log in to his account, select "Manage Booking/Check In" and enter your trip details (PNR and surname). If an upgrade is available he'll see it from there and can select as appropriate with the miles coming from the friend's account.