Abstract
With respect to an arbitrary right continuous filtration, not necessary the Wiener filtration, a certain class of backward stochastic differential equations in infinite dimensions is studied. The solution of such an equation is required to be predictable and is got uniquely with the help of a martingale representation theorem which is proved as well. The second part of the paper is devoted to proving the existence and uniqueness of the solution of a backward stochastic partial differential equation.