NEW YORK - Britney Spears' upcoming appearance on the CBS show "How I Met Your Mother" could be -- to borrow scene-stealer Barney's favorite word -- legendary.

Spears will guest star in a March 24 episode of the cult series, CBS spokeswoman Kelli Raftery told The Associated Press on Tuesday. The pop star will portray a receptionist in a dermatologist's office named Abby who becomes "smitten" with Ted (Josh Radnor), Raftery said.

Craig Thomas, the show's creator, told Usmagazine.com that Spears attended a table reading with the cast on Monday, and that her scenes will probably be filmed later this week. He said representatives for Spears approached the CBS about "Mother" because "she was looking for a small part on a funny show."

Spears has previous TV sitcom experience playing a character on a 2006 episode of "Will and Grace." She was also the host and musical guest on "Saturday Night Live" in 2000.

"How I Met Your Mother," returning Monday with all-new episodes following the writers strike, co-stars Radnor, Jason Segal, Alyson Hannigan, Cobie Smulders and Neil Patrick Harris as twentysomethings living in New York City. Harris portrays serial bachelor Barney Stinson, who frequently uses the word "legendary" to describe his various exploits.

Spears has been under the conservatorship of her father, James, following bizarre behavior and two hospitalizations. She is also locked in a custody battle with ex-husband Kevin Federline over the former couple's sons, Jayden James, 1, and Sean Preston, 2.