West Ham have confirmed forward Ricardo Vaz Te has undergone a successful operation on a shoulder problem.