|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622 。
您需要 登录 才可以下载或查看,没有帐号?注册
x
请问:报表KPGETSQL函数如何取取公式取数参数中的缺省年度,开始结束期间的值。
下面是我的存储过程:
alter proc sql
as
set nocount on
select sum(FAmountFor) from t_VoucherEntry a,t_Voucher b ,t_Item_3008 c ,t_ItemDetail d ,t_account e
where b.FVoucherID=a.FVoucherID and a.FDetailID=d.FDetailID and c.fitemid=f3008
and e.FAccountID=a.FAccountID and e.fnumber='5001.01' and c.fnumber='01' and b.FInternalInd is null and a.fdc='1'
and b.fyear=(select fvalue from t_SystemProfile where fcategory='gl'and fkey='CurrentYear')
and b.fperiod=(select fvalue from t_SystemProfile where fcategory='gl'and fkey='CurrentPeriod')
set nocount off
在报表中调用时的公式为:=KPGETSQL("SQL@","0","D","")
但是这样只能取到帐套的当前年度当前期间的数,我想根据公式取数参数中的缺省年度,开始结束期间的值来确定取数范围,应如何处理。 |
|