Bethe Ansatz Equation for the Hubbard Model with Boundary Fields