The generalized Euler series transformation method is extended to the case of a series of two variables. It is applied to summation of the Dunham series for diatomic molecules. The Kratzer oscillator - the exactly solvable problem of quantum mechanics - is used as an approximating function. A new expression for the Dunham series is obtained, and the transformed series turns out to be a functional one, which corresponds to partial summation of the original series.