Other than to sell movie tickets I don't think it contributed much in the way of story. But then again Han overall wasn't really that necessary other than as a draw for people who wanted to see the old characters back.
Well, that, and getting Ford to sign on at all. Hell, it would have been better to just leave him out of the movie altogether. But I guess everything has to have a sad ending these days.
Man....where is Perry King when we need him?