I want to show that the domain of any partially defined recursive function is equal to the range of some ( totally defined ) recursive function.
I haven't understood which is the difference between a partially defined recursive function and a totally defined recursive function? Could you explain it to me?
The difference is that a partial recursive function is partially defined. So it is an algorithm $\mathbb{N} \to \mathbb{N}$ for which there might by values $n\in \mathbb{N}$ that don't yield an answer, i.e. on which your algorithm is not defined.
For your question, write $\varphi_{e,s}$ for the $e$-th partial computable function, computed in $s$ steps. Then for a given $e$, consider \begin{align*} f(n) = \begin{cases} (n)_0; & \text{if } \varphi_{e,(n)_1}( (n)_0 ) \downarrow\\ m; &\text{else} \end{cases} \end{align*} for some fixed $m$ in the domain of $\varphi_e$. Here, $(n)_i$ is the $i$-th component of $n$ considered as finite sequence, for some recursive bijection between $\mathbb{N}$ and the set of finite sequences in $\mathbb{N}$.