永发信息网

用友U890升级到10.0报错哪位帮我改一下

答案:2  悬赏:0  手机版
解决时间 2021-12-30 06:47
数据库名: UFDATA_040_2008
D:\U8SOFT\Admin\SQLFILE10000\Main\Ufdata\Structure\Data_PRP_CA_mix_NL.sql
错误信息:
-2147217900
插入错误: 列名或所提供值的数目与表定义不匹配。
执行如下语句时出错:
Create Procedure [CA_BatchFinMx_HY]
(
@Batch nVarchar(50),
@ProductID nVarchar(20),
@Period integer,
@FinCount float
)
AS
Begin
--出完工成本明细表(还原)
SET NOCOUNT ON
-- 材料费用
insert into ca_batchmxhy_tmp
select 0,0,@period,0 ,'0' ,max(c.cinvccode) , max(c.cinvcname) , max(b.cinvcode) ,max(b.cinvname)
,max(b.cinvm_unit) , max(b.cinvstd) ,@fincount,0,sum(iqua) ,sum(itotalamo)-sum(ionptotalamo),sum(itotalamo),0, max(b.ipartid)
from ca_amoct a , ca_inventory b ,inventoryclass c where b.cinvccode=c.cinvccode and a.camoid=b.iPartID
and a.cbatch=@batch and cppid=@ProductID and iperiod=@Period and a.camotype in (0,-1)
group by camoid
-- 废品回收
insert into ca_batchmxhy_tmp
select 0,0,@period,1 ,'0' ,'' ,'', N'废品回收' ,N'废品回收'
,'' , '' ,@fincount,0,sum(iqua) ,sum(itotalamo)-sum(ionptotalamo),sum(itotalamo),0,0
from ca_amoct a where a.cbatch=@batch and cppid=@ProductID and iperiod=@Period and a.camoid='-1' and a.camotype='0'
group by camoid
-- 制造费用
insert into ca_batchmxhy_tmp
select 0,0,@period,2,'3','','',max(b.camoid),max(b.camoname)
,'','',@fincount,0,sum(iqua),sum(itotalamo)-sum(ionptotalamo),sum(itotalamo),0,0
from ca_amoct a,caq_manufacture b where a.camoid=b.camoid
and a.cbatch=@batch and a.cppid=@ProductID and iperiod=@Period and a.camotype=3
group by a.camoid
-- 辅助费用
insert into ca_batchmxhy_tmp
select 0,0,@period,3,'2','','',max(b.cprocedureid),max(b.cprocedurename)
,max(b.cunit),'',@fincount,0,sum(iqua),sum(itotalamo)-sum(ionptotalamo),sum(itotalamo),0,0
from ca_amoct a,ca_predf b where a.camoid=b.cprocedureid
and a.cbatch=@batch and a.cppid=@ProductID and iperiod=@Period and a.camotype=2
group by a.camoid
-- 其他费用
insert into ca_batchmxhy_tmp
select 0,0,@period,4,'4','','',max(b.camoid),max(b.camoname)
,'','',@fincount,0,sum(iqua),sum(itotalamo)-sum(ionptotalamo),sum(itotalamo) ,0,0
from ca_amoct a,caq_others b where a.camoid=b.camoid
and a.cbatch=@batch and a.cppid=@ProductID and iperiod=@Period and a.camotype=4
group by a.camoid
-- 人工费用
insert into ca_batchmxhy_tmp
select 0,0,@period,5,'1','','','',N'直接人工'
,'','',@fincount,0,sum(iqua),sum(itotalamo)-sum(ionptotalamo),sum(itotalamo),0,0
from ca_amoct a where
a.cbatch=@batch and a.cppid=@ProductID and iperiod=@Period and a.camotype=1
group by a.camoid
-- 先将由总耗量算出完工的耗量
update ca_batchmxhy_tmp set qua = totalqua / totalamo * amo where totalamo <>0 and period = @period
End
最佳答案
这种错误没法改,建议恢复账套后先在U890的补丁升级工具里下载并安装关键的补丁,然后在升级到U8.10
全部回答
有破解,20万可能只买几个模块的,20万算什么,我们公司100多万呢,用的是u852的,u890有破解的,自己找一下老王给黑医生的16用户的,那个好用,你一定分不给,所以就不给你了,自己找 希望采纳
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
春分是哪天
电脑换了新主板和CPU后显示器无信号,风扇都
微博抽奖怎么看中奖了
单选题在不透明的袋中装有大小一样的4个红球
放寒假时想老师的
选出对名着《骆驼祥子》相关内容的表述错误的
钻石小鸟和其他珠宝品牌有什么区别?
食用碱对土壤的危害
请高手翻译:a play in which distance is an
单选题生态系统中的物质循环是A.反复出现B.单
那部电视剧中女主角叫沉香,不是宝莲灯,也不是
The only thing holding you back is yoursel
装订凭证时前面附的银行对账单只附基本户的还
单选题地球上同一条经线A.正午太阳高度相同B.
梦见老公领回很多只狗回来
推荐资讯
Lauro was away in Paris for over a week.Wh
英伟达游戏优化有用吗
envision显示器h919w+怎么维修
曾经做电商的 现在都转行做什么了
单选题下列关于色盲遗传的描述中错误的是A.男
绍字怎么读
大多数人都希望受到别人欢迎,但并非都能做到
爱出汗的人吃什么好
“没有买卖,就没有杀害”,这是“野生救援”
有什么最新的完结日漫吗比较好看的求推荐
胎压三个220一个210有没有问题?
中国的五个自治区,成立的时间分别是?
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?