IntroductionWe continue in this article our investigation of a lifting of automorphic forms that has been first studied by H. YOSHIDA IY1, Y2]. This lifting associates to a pair of automorphic forms cpl , cpz on the adelization D i of a definite quaternion algebra D over Q that are right invariant under a prescribed compact subgroup of D i a Siegel modular form of degree 2. The lifted form F = Y ( 2 ) ( y , , cp, ) is a linear combination of the Siegel theta series of the ideals in D with respect to maximal orders (or more general Eichler orders of square free level N), equipped with the reduced norm of the algebra as quadratic form. By EICHLEK'S work on the so called basis problem this lifting can also be viewed as associating a Siegel modular form of degree 2 to a pair of elliptic modular forms (newforms) f , , ,fz of Haupttypus for the group T,(N). Using Shimura's lifting one can moreover transfer the pair ( f l , f,) to a pair of modular forms of half integral weight g,, g, with respect t o T0(4N), and if one of these pairs consists of Hecke eigenforms all of them do and have the same eigenvalues. In the special case that f, and f z are of weight 2 (equivalently: vl and cpz are right invariant under DG = ( D 0 IR)") we showed in [B-S 31 that the Mellin transform (or Dirichlet series of Koecher and MaaB) of Y(2)(cpl, q z ) is essentially proportional to the Rankin convolution of the Mellin transforms of g,, g,. Using a result of ARAKAWA on the poles and residues of this Dirichlet series we could (generalizing a result of GROSS [Gr]) describe the linear relations between the theta series in certain genera of ternary quadratic forms and give a necessary and sufficient criterion for a cusp form g of weight 3/2 to be a linear combination of these theta series.The purpose of the present article is to generalize these results to arbitrary weights of ,fl, f z (or D2-representation types of cpl, qZ). By EICHLER'S results one sees that this leads one to work with Siegel theta series with spherical harmonics which, by work of KASHIWARA/~ERGNE [K-V], are vector valued unless one of , f l , j , has weight 2 (this latter case was the situation in which YOSHIDA had defined his lifting). In joint work with M. FURUSAWA we will show in a separate article (using our relation for the Mellin transform mentioned above) that Y (21(ql, cp, ) can be further lifted to an automorphic form on the metaplectic cover CST,(A) of GSp2(A) whose Whittaker coefficients are related to the products of the Fourier coefficients of g,, g,. This will confirm a conjecture of BUMP,