A possibility of correction of the thermal and turbulent distortions of laser radiation through the amplitude-phase control is considered. The control can be realized in a two-mirror adaptive system. An iteration algorithm is suggested for generating a required amplitude distribution of a corrected beam at the entrance into a distorting medium under the phase control in a plane located at some distance from the output aperture of the system; its accuracy is estimated. Advantages of the method over the phase-conjugation algorithm are shown in numerical experiments.