Top-seeded Ivan Lendl overcame his own erratic play and the driving serves and volleys of Michiel Schapers to pull out a five-set victory at Wimbledon Friday.

The women's top seed, Steffi Graf, advanced to the fourth round in much easier fashion. But ninth-seeded Hana Mandlikova made an early exit from her second consecutive Grand Slam tournament.A sixth men's seed was eliminated as the fourth round got under way. Paul Annacone of Knoxville, Tenn., beat 12th-seeded Jonas Svensson, a French Open semifinalist from Sweden, 6-4, 6-2, 3-6, 6-4.

Pat Cash, the defending men's champ who survived a five-setter in the second round, breezed into the fourth round with a 6-1, 6-2, 6-4 victory over fellow Australian John Fitzgerald.

Boris Becker, the 1985-86 winner, survived a first-set tiebreaker to beat Sammy Giammalva of Houston 7-6, 6-4, 6-4. Becker rallied from 0-40 in the final game to wrap it up with a service winner.

Also among the winners was American Tim Mayotte, the men's 10th seed, who beat Joakim Nystrom of Sweden 6-4, 4-6, 6-2, 6-4.

Lendl, yearning to win Wimbledon more than any other tournament, rallied to beat Schapers, the world's 43rd-ranked player, 6-7, 7-6, 6-4, 6-7, 6-1.

Schapers has had a good year. The Dutchman hasn't won any tournaments, but he reached the quarterfinals of the Australian Open and at least the semifinals of two other events. And he is best on grass, as he showed against Lendl.

The No. 1-ranked player in the world was distracted by noise on Court No. 2, a small showcourt located right by one of the main pedstrian walkways at the All England Club. At one point, the Czechoslovak yelled at someone in the crowd, "Shut up!"

He also had trouble with the 6-foot-5 Dutchman until the final set, when he showed the type of overpowering tennis that has taken him to the Wimbledon final the last two years.

Lendl broke Schapers for the final time in the sixth game of the fifth set, then served out the match at love.

Graf had her toughest match of the tournament so far, but it was not that tough.

Aiming to keep her hopes of a Grand Slam intact with her first Wimbledon title, Graf beat Terry Phelps of Larchmont, N.Y., 6-3, 6-1 in a Centre Court display of muscle.

The 19-year-old West German took just 50 minutes to wrap up the victory. She won six games in a row in the second set, sending one forehand service return back so hard and fast that Phelps looked like a public-court hacker as she swung at the ball at her feet and missed. It was so embarrassing in front of 14,000 fans that Phelps had to laugh.

"Maybe today was a better match, more rallies, but I have not had any tough competition," said Graf, who lost twice as many games to Phelps as she had in her first two matches combined.

Also winning on a muggy, overcast day were men's seventh seed Henri Leconte of France, over Barry Moir of South Africa 3-6, 6-1, 7-6, 6-1; and women's seeds Helena Sukova of Czechoslovakia, No. 6; and Zina Garrison of Houston, No. 12, and Mary Joe Fernandez, No. 16.

Mandlikova, runner-up at Wimbledon in 1981 and 1986, lost to Anne Minter of Australia 6-4, 6-3. Last month at Paris, Mandlikova was eliminated in the second round of the French Open by Bettina Fulco.

"It is very difficult to play my best. I've had so many injuries this year," said Mandlikova, who was sidelined for nearly two months with a leg muscle injury before the French Open. "Anne is a very difficult player and her best surface is grass."

Minter, moving through the third round at the world's top grass-court tournament for the first time, said she was happy to get the match over in two sets.

"I glad I didn't let it slip away," she said. "Today, she got very few forehands. We didn't have very many real rallies."

Garrison, a Wimbledon semifinalist in 1985, breezed through the third round with a 7-6, 6-0 victory over Elizabeth Minter, the younger sister of Mandlikova's conqueror. Garrison has not lost a set in the tournament.

Neither has Fernandez, a 16-year-old from Miami, Fla., who beat Iwona Kuczynska of Poland 6-4, 6-1.

Sukova lost her second set of the tournament before rallying to beat Etsuko Inoue of Japan 6-7, 6-3, 6-2.

Mandlikova, a former champion of the Australian, French and U.S. Opens, was cruising in the first set, building a 4-2 lead, when she suddenly crashed.

The Czechoslovakia-born Australian lost four games in a row to drop the first set, then lost her serve in the eighth game of the second set, letting Minter serve for the match.