用友U8模块反启用
【问题需求】
使用用友U8+软件时,账套可能由于某些原因,之前已经使用过的模块需要取消掉。
但是由于模块已经使用产生数据了,不能直接将模块关闭。
此时需要后台进行数据库处理将模块关闭。
【解决方案】
以下是一些常用模块取消启用的语句,其他模块根据对应的模块标识进行修改,然后针对年度库进行执行即可。
注意:cacc_id=账号套,cSub_Id =模块标识
| update accinformation |
| set cvalue='' |
| where csysid='FA' and ctype='ddate'; |
| --可省 and (cid='601'or cid='05'or cid='603'OR CID='602' OR CID='03'OR CID='06') |
| update gl_mend |
| set bflag_FA=0; |
| delete ufsystem..ua_account_sub |
| where (cacc_id='001') and (cSub_Id = 'FA'); |
| update accinformation |
| set cvalue='' |
| where csysid='wa' and ctype='ddate'; |
| |
| update gl_mend |
| set bflag_Wa=0; |
| delete ufsystem..ua_account_sub |
| where (cacc_id='001') and (cSub_Id = 'Wa'); |
| update accinformation |
| set cvalue='' |
| where csysid='PU' and ctype='ddate'; |
| |
| update gl_mend |
| set bflag_PU=0; |
| delete ufsystem..ua_account_sub |
| where (cacc_id='001') and (cSub_Id = 'PU'); |
| update accinformation |
| set cvalue='' |
| where csysid='SA' and ctype='ddate'; |
| |
| update gl_mend |
| set bflag_SA=0; |
| delete ufsystem..ua_account_sub |
| where (cacc_id='001') and (cSub_Id = 'SA'); |
| update accinformation |
| set cvalue='' |
| where csysid='st' and ctype='ddate'; |
| |
| update gl_mend |
| set bflag_st=0; |
| delete ufsystem..ua_account_sub |
| where (cacc_id='001') and (cSub_Id = 'st'); |
| update accinformation |
| set cvalue='' |
| where csysid='IA' and ctype='ddate'; |
| |
| update gl_mend |
| set bflag_IA=0; |
| delete ufsystem..ua_account_sub |
| where (cacc_id='001') and (cSub_Id = 'IA'); |
| update accinformation |
| set cvalue='' |
| where csysid='AR' and ctype='ddate'; |
| |
| update gl_mend |
| set bflag_AR=0; |
| delete ufsystem..ua_account_sub |
| where (cacc_id='001') and (cSub_Id = 'AR'); |
| |
| * 【应付模块反启用】 |
| |
| update accinformation |
| set cvalue='' |
| where csysid='AP' and ctype='ddate' |
| |
| update gl_mend |
| set bflag_AP=0; |
| delete ufsystem..ua_account_sub |
| where (cacc_id='001') and (cSub_Id = 'AP'); |
| update accinformation |
| set cvalue='' |
| where csysid='GS' and ctype='ddate'; |
| update gl_mend |
| set bflag_GS=0 ; |
| delete from ufsystem..ua_account_sub |
| where cacc_id='001' and csub_id='GS' |
————————————————
版权声明:本文为CSDN博主「用友ERP软件」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u011696928/article/details/122747240
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 字符编码:从基础到乱码解决