Ehrrm, not current anymore, but
AFAIK Apu Flap is controlled via the ECB which is powered by the BAT BUS. The BAT BUS is supplied by DC BUS 1and/or 2 and/or the batteries.
So if EXT ELEC ON, the BAT BUS is supplied even with batteries of and the Flap will close.
My 2 cents.