By acetylation of erythromycin A (I) with acetyl chloride and NaHCO3 in ethyl acetate followed by reaction with stearic acid.