|
问题现象:在用友8.51erp系统中用友U8版本号:U8.51软件的财务系统产品线应付模块出现如下问题:查询应付账款模块业务账表中的业务明细账,无法连查单据,只可以连查余额表。演示账套可以查询。升级至用友U852erp系统不能解决。请帮忙解答!
原因分析:因为RPT_FLDDEF,RPT_FLTDEF表中的记录丢失,缺少单据类型,在程序读单据类型式失败,造成无法查询单据。
解决方案:在用友erp 系统版本U8.51软件中从rpt_glbdef中看到应付明细账中的ID为1957,把两表中原来的id=1957的记录删除,再从正常账套把丢失的纪录粘贴过来。如008帐套正常,可以用下述语句:select*intotempdb..t_fldfromufdata_008_2005..rpt_flddefwhereid=1957select*intotempdb..t_fltfromufdata_008_2005..rpt_fltdefwhereid=1957deletefromrpt_flddefwhereid=1957deletefromrpt_fltdefwhereid=1957insertintorpt_flddef([ID],[Name],[Expression],[Condition],[ModeEx],[OrderEx],[TopEx],[LeftEx],[Width],[Height],[Visible],[Note],[nameForeign],[iColSize],[FormatEx],[iAlignStyle],[iSize])select[ID],[Name],[Expression],[Condition],[ModeEx],[OrderEx],[TopEx],[LeftEx],[Width],[Height],[Visible],[Note],[nameForeign],[iColSize],[FormatEx],[iAlignStyle],[iSize]fromtempdb..t_fldinsertintorpt_fltdef([Location],[ID],[Name],[Note],[Expression],[ModeEx],[IsSingle],[Flag],[Caption],[iLeft],[iTop],[iWidth],[iHeight],[iCaptionLeft],[iCaptionWidth],[iPage],[iRefSelect])select[Location],[ID],[Name],[Note],[Expression],[ModeEx],[IsSingle],[Flag],[Caption],[iLeft],[iTop],[iWidth],[iHeight],[iCaptionLeft],[iCaptionWidth],[iPage],[iRefSelect]fromtempdb..t_fltgodroptabletempdb..t_fldgodroptabletempdb..t_flt。
|
|