Cream sugar, flour, and butter; add eggs and mashed beans. Sift all dry ingredients together and add to creamed mixture along with apples, raisins, pecans, and vanilla. Mix well and pour into greased tube pan. Bake at 350° for one hour.
Combine frosting ingredients and spread on cake.