Motivated by a hedging problem in mathematical finance, El Karoui and Quenez [7] and Kramkov [14] have developed optional versions of the Doob-Meyer decomposition which hold simultaneously for all equivalent martingale measures. We investigate the general structure of such optional decompositions, both in additive and in multiplicative form, and under constraints corresponding to di_erent classes of equivalent measures. As an application, we extend results of Karatzas and Cvitanic [3] on hedging problems with constrained portfolios.