ITPUB??ì3
12月微软Hyper-V虚拟化沙龙主题征集
ITPUB论坛 » Oracle ERP » 关于质量要素活动设置的问题

标题: 关于质量要素活动设置的问题
离线 Arraykyl
初级会员



精华贴数 0
个人空间 0
技术积分 24 (47261)
社区积分 0 (94838)
注册日期 2003-8-28
论坛徽章:0
      
      

发表于 2003-8-28 15:08 
关于质量要素活动设置的问题

请教各位在设置质量要素的活动时,可否使用执行一个SQL角本,包括"INSERT","COMMIT"等语句,最终实现在输入谋一质量要素的值之后,向某个TABLE中插入一条记录,请指教,非常感谢!!!


只看该作者    顶部
离线 Arrayyubinh
初级会员



精华贴数 0
个人空间 0
技术积分 2 (164236)
社区积分 0 (94845)
注册日期 2003-8-28
论坛徽章:0
      
      

发表于 2003-8-28 15:27 
连着你都不会


只看该作者    顶部
离线 shenyan2989
初级会员



精华贴数 0
个人空间 0
技术积分 34 (36823)
社区积分 1 (34734)
注册日期 2003-6-2
论坛徽章:0
      
      

发表于 2003-8-28 17:41 
可以啊

可以做到。在活动中选择SQL,在写上你想达到的语句就可以了啊


只看该作者    顶部
离线 kyl
初级会员



精华贴数 0
个人空间 0
技术积分 24 (47261)
社区积分 0 (94838)
注册日期 2003-8-28
论坛徽章:0
      
      

发表于 2003-8-29 08:04 
我在活动中设置单条SELECT语句时可以,可是用行如:
begin
    insert;
    commit;   
end;
系统没有任何反应,请指教。谢谢


只看该作者    顶部
离线 taohan
版主



精华贴数 5
个人空间 0
技术积分 5525 (244)
社区积分 103 (3453)
注册日期 2002-8-25
论坛徽章:2
会员2006贡献徽章授权会员    
      

发表于 2003-8-29 08:23 
具体SQL


只看该作者    顶部
离线 kyl
初级会员



精华贴数 0
个人空间 0
技术积分 24 (47261)
社区积分 0 (94838)
注册日期 2003-8-28
论坛徽章:0
      
      

发表于 2003-8-29 11:54 
就是这条语句,在PL-SQL中能够成功,但在质量要素活动中不行

begin
       insert into wip_move_txn_interface c
         (transaction_id
         ,last_update_date
         ,creation_date
         ,process_phase
         ,process_status
         ,transaction_type
         ,organization_id
         ,entity_type
         ,primary_item_id
         ,transaction_date
         ,fm_operation_seq_num
         ,fm_intraoperation_step_type
         ,to_operation_seq_num
         ,to_intraoperation_step_type
         ,transaction_quantity
         ,transaction_uom
        ,LAST_UPDATED_BY_NAME
        ,CREATED_BY_NAME
         ,wip_entity_id
         ,organization_code
         ,wip_entity_name
         ,SCRAP_ACCOUNT_ID
         )
       values(wip.wip_interface_s.nextval
         ,sysdate
         ,sysdate
         ,1                   -- move validation
         ,1                   -- pending
         ,1                   -- move transaction
         ,83
         ,3
         ,4090
         ,sysdate
         ,60
         ,1
         ,60
         ,5
         ,1
         ,'件'
         ,'KYL'
         ,'KYL'
         ,15665
         ,'SJK'
         ,'KYL_002'
         ,2029
         );
         COMMIT;
end;


只看该作者    顶部
离线 taohan
版主



精华贴数 5
个人空间 0
技术积分 5525 (244)
社区积分 103 (3453)
注册日期 2002-8-25
论坛徽章:2
会员2006贡献徽章授权会员    
      

发表于 2003-8-29 13:55 
这篇讲的比较详细,在这里好象不用begin 和 commit 好长时间没用忘记了
1.  Navigate to Quality > Setup > Collection Plan.

2.  Define the Collection Element, Coil_ID.
a.  Element Type = Variable
b.  Prompt = Coil_ID
c.  Hint = Coil Information
d.  Data Type = Character
e.  Reporting Length = 30
f.  Click on Action
g.  Define Action Rules ->
h.  Sequence (10), Element (Coil_ID), Condition (is entered)
i.  Action Rule Invokes (Execute a SQL Script)
j.  Click on Action Details.
k.  TEXT > Enter the SQL Script.

2.  Define a variable required by the SQL Script in order to execute the Action
properly.

l.  Click on the Variables Button.
m.  Token Name; & Coil Collection Element: Coil_id
n.  Enter Name of the collection element to use as an output variable
    for the Current Action.

    Oracle Quality automatically substitutes the associated collection
    element when processing the Action.

    Example SQL: insert into TX_COIL1(coil_id) values('&COIL');

3.  Verify the Process is working by checking the Concurrent Request.
This Process runs in the background after the Quality Data has been entered
into the Quality Collection Plan.   Checking the concurrent request can explain
any errors in the SQL or execution of it from the Quality Action.


只看该作者    顶部
离线 vvyjp
Giant Penguin



精华贴数 19
个人空间 0
技术积分 36539 (22)
社区积分 2778 (485)
注册日期 2003-7-14
论坛徽章:53
现任管理团队成员生肖徽章2007版:兔    
      

发表于 2003-9-6 00:13 
学习


只看该作者    顶部
 
    

相关内容


CopyRight 1999-2006 itpub.net All Right Reserved.
北京皓辰广域网络信息技术有限公司. 版权所有
E-mail:Webmaster@itpub.net
京ICP证:010037号 联系我们 法律顾问