We study the direct and inverse scattering problem for the one-dimensional Schrodinger equation with steplike potentials. We give necessary and sufficient conditions for the scattering data to correspond to a potential with prescribed smoothness and prescribed decay to their asymptotics. These results are important for solving the Korteweg-de Vries equation via the inverse scattering transform.