Will Ferrell and Mark Wahlberg in "The B Team"

Sony Pictures Entertainment has acquired "The B Team," an Adam McKay-directed action comedy that will team Will Ferrell and Mark Wahlberg as cops, with Chris Henchy and McKay writing the script.

Sony has not set a release date on the film, but it is expected to go into production as quickly as the filmmakers can get it ready.

The comedy was pitched around town on Tuesday and Sony co-president Matt Tolmach moved quickly. Tolmach was comfortable committing to a film without a finished script, because Columbia worked in exactly the same fashion on "Talladega Nights" and "Step Brothers."

Sony intends to register the title "The B Team," a challenge considering that 20th Century Fox is mobilizing a movie based on the TV series "The A Team," with Joe Carnahan directing.