We consider analytically as well as numerically the finite-size scaling behavior in the stationary state near the nonequilibrium phase transition of directed percolation within the mean field regime, i.e., above the upper critical dimension. Analogous to equilibrium, usual finite-size scaling is valid below the upper critical dimension, whereas it fails above. Performing a momentum analysis of ...