DWBA approach to inelastic scattering at medium energies