A Generating Transformation to Solve Difference Equations