select @SQLString ='select @FDebit=Sum(Fdebit),@FCredit=abs(Sum(FbeginBalance)) from t_dwhbalance where fdetailid=0 and fcurrencyid=0 and fperiod='''+@FPeriod1+''' and fyear =''' +@FYear1 +'''and FBOttomItem = '''+cast(2341 as varchar(50))+''' and fcompany =''' +@FCompany +''''