Mega-producer Greg Berlanti and “Witches of East End” creator Maggie Friedman are adapting upcoming book series “The Thousandth Floor” for ABC, Variety has learned.

The network has put a script, penned by Friedman, into development for series contention. Inspired by author Katharine McGee’s yet-to-be-released novels, the futuristic year 2118-set drama takes place in a thousand-story supertower on Manhattan’s Upper East Side where a young woman’s fall from the 1,000th floor ignites a scandal that ensnares the top-floor elite and the bottom-floor drones. In the story’s hyper-stratified world, the higher you climb, the farther you fall.

“The Thousandth Floor” will be the first novel of the series, published by HarperTeen. It’s slated to hit shelves in 2017.

The project hails from Berlanti Productions and Alloy Entertainment. Berlanti will exec produce, along with Berlanti Prods.’ Sarah Schechter and Alloy’s Leslie Morgenstein and Gina Girolamo. Friedman will also serve as an exec producer, in addition to writer on the hour-long series. Warner Bros. TV, where Berlanti is under an overall deal, is the studio.

“The Thousandth Floor” marks Friedman’s return to ABC, as she created the short-lived witch series “Eastwick,” starring Rebecca Romijn. The series also serves as a reunion for Friedman and Berlanti who both worked on “Dawson’s Creek.”

For Berlanti, the sale is his fifth of this development cycle, joining “Brides,” a modern-day Dracula-inspired soap that received a pilot production commitment at NBC; “Riverdale,” an Archie Comics reboot at the CW; and two crime dramas at CBS, one untitled and another titled “Out of Body.”

Currently on-air, Berlanti is behind CW hits “Arrow” and “The Flash,” NBC’s “Mysteries of Laura,” plus “Blindspot,” also on The Peacock, which nabbed the fall’s first new series full-season pickup. This month, his hotly-anticipated “Supergirl” will bow on CBS, and CW’s superhero mashup “DC’s Legends of Tomorrow” is on the midseason dock.