The point canonical transformation (PCT) approach is used to solve the Schr¨odinger equation for an arbitrary dimension D with a power-law position-dependent effective mass (PDEM) distribution function for the pseudoharmonic and modified Kratzer (Mietype) diatomic molecular potentials. In mapping the transformed exactly solvable Ddimensional (D ≥ 2) Schr¨odinger equation with constant mass into the effective mass equation by using a proper transformation, the exact bound state solutions including the energy eigenvalues and corresponding wave functions are derived. The well-known pseudoharmonic and modified Kratzer exact eigenstates of various dimensionality is manifested.