壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1892|回复: 3

[财务] 日历会计的结束时间设置出错,怎么修改呀

[复制链接]
发表于 2012/2/2 10:33:13 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622  。

您需要 登录 才可以下载或查看,没有帐号?注册

x
我们的应用是Oracle erp 11.5
我们这里出现一个这样的问题,我们在增加日历会计时结束时间少了一天,并且在这个月的1号已经发生了分录,如果我们单纯从底层去修改gl_period gl_period_status里的结束时间,不知道 会不会有什么影响
 楼主| 发表于 2012/2/2 18:11:19 | 显示全部楼层
1. Change the dates for the period using SQL*Plus.

-- Update the END_DATE in GL_PERIODS for the
affected calendar (period_set_name).

update gl_periods
set end_date = '2012-02-29'
where end_date = '2012-02-28'
and period_name = '02-12'
and period_set_name = '总帐日历';

This should update 1 row.

-- Update the END_DATE in GL_PERIOD_STATUSES for
all applications and sets of books that use this calendar.
Example:

update gl_period_statuses
set end_date = '2012-02-29'
where end_date = '2012-02-28'
and period_name = '02-12'
and set_of_books_id in ('1','2','3','4','5');


2. Truncate the GL_DATE_PERIOD_MAP table as follows:
-- After logging into sql, execute the statement

sql> TRUNCATE TABLE GL.GL_DATE_PERIOD_MAP;


3. Run the script $GL_TOP/admin/sql/GLUABCAL.sql as follows:

a) At the Unix prompt enter: cd $GL_TOP/admin/sql

b) At the next prompt enter: SQL*plus

c) Log into SQL*Plus as apps user
Enter username = apps
Enter password = apps
(or your own user defined apps account)

d) At the sql prompt enter:
sql> @gluabcal.sql

Note: Gluabcal.sql will be adding rows to gl_date_period_map
for all calendars even if they are not used so do not be surprised
to find extra rows e.g. JEBE_MONTH_VAT is seeded for Belgium localisations
so there will be many extra rows for that with a period of 'NOT ASSIGNED'.
This is harmless and can be deleted or ignored.
发表于 2012/2/3 08:51:04 | 显示全部楼层
rongren 发表于 2012/2/2 18:11
1. Change the dates for the period using SQL*Plus.

-- Update the END_DATE in GL_PERIODS for the
...

这是解决方法呗?
 楼主| 发表于 2012/2/6 08:17:21 | 显示全部楼层
这是上次我咨询Oracle工程师给我的解决方案
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/29 13:45 , Processed in 0.013946 second(s), 14 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表