12
返回列表 发新帖
楼主: luckyang12

等待关闭状态的工单无法关闭

[复制链接]
论坛徽章:
0
11#
 楼主| 发表于 2009-3-17 14:49 | 只看该作者

回复 #10 马甲168 的帖子

直接在后台更改其状态
update wip_discrete_jobs
     set status_type = 4       -- 完成状态
     where wip_entity_id =

使用道具 举报

回复
论坛徽章:
12
生肖徽章2007版:羊
日期:2008-10-26 22:22:10咸鸭蛋
日期:2011-07-06 15:50:232010新春纪念徽章
日期:2010-03-01 11:19:58生肖徽章2007版:鸡
日期:2009-10-16 16:17:32生肖徽章2007版:虎
日期:2009-09-30 12:39:12生肖徽章2007版:虎
日期:2009-09-25 16:36:47生肖徽章2007版:羊
日期:2009-06-30 15:11:42生肖徽章2007版:猪
日期:2009-06-15 16:12:29生肖徽章2007版:马
日期:2009-03-11 15:33:29生肖徽章2007版:猴
日期:2009-02-16 11:12:16
12#
发表于 2009-3-18 09:07 | 只看该作者
原帖由 luckyang12 于 2009-3-17 14:49 发表
直接在后台更改其状态
update wip_discrete_jobs
     set status_type = 4       -- 完成状态
     where wip_entity_id =

把REQUEST_ID为空,再关闭下

使用道具 举报

回复
论坛徽章:
1
祖国60周年纪念徽章
日期:2009-10-09 08:28:00
13#
发表于 2010-10-12 17:02 | 只看该作者
我们也碰到这样的问题,一直没有解决掉好.

那位高手帮忙一下,先谢谢了/

使用道具 举报

回复
论坛徽章:
4
ERP板块每日发贴之星
日期:2010-10-05 01:01:012010广州亚运会纪念徽章:壁球
日期:2010-10-07 01:26:23ITPUB9周年纪念徽章
日期:2010-10-08 09:31:22奥运会纪念徽章:铁人三项
日期:2012-08-23 21:12:28
14#
发表于 2010-10-12 22:11 | 只看该作者
Cannot Close A WIP Discrete Job [ID 158674.1]   

--------------------------------------------------------------------------------

  Modified 26-APR-2009     Type PROBLEM     Status PUBLISHED   

Checked for relevance 26-APR-2009




fact: Oracle Work in Process 11.5
fact: WICDCL - Close Discrete Jobs
symptom: Cannot Close A WIP Discrete Job
symptom: Job status remains in Pending Close
symptom: Unable to reprocess using Tools / Check Requests
symptom: APP-WIP-25191: 4 of 4 records failed.
symptom: You cannot change status of jobs. Either concurrent program exists
to close these jobs or jobs did not have status of Pending Close
change: NOTE ROLE: Navigation

Work in Processiscrete Jobs:Close Discrete Jobs
cause: Unwanted records in WIP_DJ_CLOSE_TEMP.



fix:

Ideally, step 1 mentioned below should suffice to re-submit the jobs in Pending
Close status and the rest of the steps are not required. If step 1 fails, for
any reason then run steps 2 and 3 to set the jobs to the original status,
delete the records from the WIP_DJ_CLOSE_TEMP table and then re-submit the jobs
again manually for closure.

If, for whatever reason, the concurrent process is interrupted or terminated,
records can get stranded in WIP_DJ_CLOSE_TEMP.  Since all of the records in
this table have status of 'Pending Close', no close routines have been called
and committed.  

Therefore, all you need to do is reset the job status from Pending Close to
its previous status in WIP_DISCRETE_JOBS and delete the record from
WIP_DJ_CLOSE_TEMP.  You will then need to rerun the discrete job closure.

1. Resetting the job status from Pending Close to its previous status.

1.1  Navigate to Cost/Discrete Jobs/Close Discrete Jobs (Form).
1.2  Select the job in question and hit the [Open] button.
1.3  Go to Tools -> close -> select "Check Requests 1".This puts the
      job back to the status it was in prior to attempting to close
      (i.e., Complete-No Charges Allowed) and clears out any records that may
      be erroneously stuck in the WIP_Discrete_Jobs_Close_Temp table that
      could prevent records from being processed.

2. Delete the records from WIP_DJ_CLOSE_TEMP.

2.1 To find out the current status of the records in WIP_DISCRETE_JOBS for
        the records existing in WIP_DJ_CLOSE_TEMP, run this script.

          select temp.wip_entity_id, temp.organization_id org_id,
          substr(temp.wip_entity_name,1,15) dj_name,
          substr(temp.status_type,1,8) tmp_status,
          substr(wdj.status_type,1,8) dj_status
          from wip_dj_close_temp temp, wip_discrete_jobs wdj
          where wdj.wip_entity_id = temp.wip_entity_id;

2.2 Delete the corresponding records from WIP_DJ_CLOSE_TEMP.

3. Rerun the Discrete Job Closure.

To resubmit for closure go to Special -> Close.  As long as the Inventory
Accounting Period for the next month is open, the charges will be put into
that month.

使用道具 举报

回复
论坛徽章:
0
15#
发表于 2011-10-12 14:42 | 只看该作者
楼主,请问你的问题最后是怎么解决的呢?如知,麻烦告之,ths

使用道具 举报

回复
论坛徽章:
0
16#
发表于 2013-7-3 14:04 | 只看该作者
我是老猫2009 发表于 2011-10-12 14:42
楼主,请问你的问题最后是怎么解决的呢?如知,麻烦告之,ths

工具>检查请求  会自动变为等待关闭前的状态

然后重新关闭就好了

使用道具 举报

回复
论坛徽章:
1
2013年新春福章
日期:2013-02-25 14:51:24
17#
发表于 2013-7-5 15:56 | 只看该作者
pending close的情况应该是对应的current program还没跑,所以自然也不能冲新跑,该了状态 重新关是正解

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
18#
发表于 2013-10-23 14:15 | 只看该作者
今天遇到同样问题。感谢上面楼主的提示。
语句:
update wip_discrete_jobs wdj
set    wdj.request_id ='',
       wdj.status_type = 4
where  wdj.wip_entity_id in (select we.wip_entity_id
                              from wip_entities we
                              where we.wip_entity_name in  ('job number','xxxxx','xxxxxx','xxxxxxx') )
状态变成已完成,重新关闭即可。(我是用select   from for update 改的,上面语句是后总结的)

使用道具 举报

回复
论坛徽章:
0
19#
发表于 2014-1-20 17:20 | 只看该作者
终极解决方案:
1.查找出来对应的工单
select
wdj.status_type,
wdj.* from wip_discrete_jobs wdj
where 1=1
and wdj.wip_entity_id  = &wdj.wip_entity_id
2.清除临时表数据
delete from  wip_dj_close_temp wct
where 1=1
and wct.wip_entity_id = &wct.wip_entity_id
3.修改工单状态
update wip_discrete_jobs
set status_type = 4
where status_type in (14, 15)
and WIP_ENTITY_ID=&WIP_ENTITY_ID
and date_closed is null;

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表