用友软件免费下载(www.bbsufida.com)旨在提供全系列最新最全的用友财务软件免费下载地址,快速下载请添加微信 yyrjgls

物料清单资料维护按上张或下张都会出现错误提示:“Object reference not set to an i-用友U8

admin2016-06-20496用友U8纪录但在脚本

物料清单资料维护按上张或下张都会出现错误提示:“Object reference not set to an i

微信号:yyrjgls
技术咨询,有偿服务!
复制微信号
问题现象:打开物料清单资料维护,定位到J2241021202C母件编码的物料清单后,按上张或下张都会出现错误提示:“Object
reference
not
set
to
an
instance
of
an
object”,打了最新的hotfix和dbhotfix后问题依旧。 解决方案:此处有几个脚本:
1、select
*
from
bas_part
where
invcode
not
in
(select
cinvcode
from
inventory)
查询在bas_part表中存在,但在inventory表中不存在的纪录。
2、select
*
from
bom_parent
where
parentid
in
(select
partid
from
bas_part
where
invcode
not
in
(select
cinvcode
from
inventory))
查询在bas_part表中存在,但在inventory表中不存在的纪录,其对应的于bom_parent表中的值。
3、select
*
from
bom_bom
where
bomid
in
(select
bomid
from
bom_parent
where
parentid
in
(select
partid
from
bas_part
where
invcode
not
in
(select
cinvcode
from
inventory)))
查询在bas_part表中存在,但在inventory表中不存在的纪录,对应的于bom_parent表中的值其对应的BOM_bom中的纪录。
在查询到这些内容后仔细甄别,是否有客户还需要的BOM。如果确认这些都是客户不需要的BOM,可顺序执行以下三行脚本,删除这些值:
delete
from
bom_bom
where
bomid
in
(select
bomid
from
bom_parent
where
parentid
in
(select
partid
from
bas_part
where
invcode
not
in
(select
cinvcode
from
inventory)));
delete
from
bom_parent
where
parentid
in
(select
partid
from
bas_part
where
invcode
not
in
(select
cinvcode
from
inventory));
delete
from
bas_part
where
invcode
not
in
(select
cinvcode
from
inventory)
如果其中有些BOM是客户需要的,只不过在存货档案中无意删除了,请在执行脚本前纪录下结构以便客户再次添加BOM时参考。
请在执行脚本前务必备份原有用户数据。

本文链接:https://www.bbsufida.com/u8/37913.html

网友评论

热门文章
侧栏广告位
随机文章