AME_PR采购申请单通过AME审批设定和测试(案例)

2014-06-21 Created By BaoXinjian

一、摘要


本案例是PR单启动AME签核进行个性化的一个简单案列,实际上的PR单通过AME审批更加复杂,不建议直接修改Oracle的标准代码实现客制化需求,尽量使用Oracle一些标准需求实现需求

1. User的Security设定

    (1). 查询当前使用的User

    (2). 设定Amdinistrator的Security

    (3). 设定AME的Security

    (4). 通过Profier启动AME

2. PR单的签合设定

3. 设定AME Setup

    (1). 建立 Attribute

    (2). 建立 Condition

    (3). 建立 Action Type

    (4). 建立 Approval Groups

4. 建立AME的Rule

    (1). 建立 Rule Detail

    (2). 建立 Add Condition

    (3). 建立 Add Action

    (4). Review

5. Run Test测试

    (1). 查询Purchase Requisition ID

    (2). Run Test后,其签合结果

6. 开立PR正式测试

    (1). 开立PR单

    (2). 进行Approve

    (3). 查看Notification    

 

二、步骤解析


1. User的Security设定

(1). 查询当前使用的User

        

(2). 设定Amdinistrator的Security

        

(3). 设定AME的Security

        

(4). 通过Profier启动AME 

        

 

2. PR单的签合设定

    

 

3. 设定AME Setup 

(1). 建立 Attribute

        

 1 SELECT NVL (
 2 
 3           SUM (
 4 
 5              DECODE (order_type_lookup_code ,
 6 
 7                      'RATE', amount,
 8 
 9                      'FIXED PRICE', amount,
10 
11                      quantity * unit_price )),
12 
13           0),
14 
15        po_ame_setup_pvt. get_function_currency (
16 
17           MAX (pl .requisition_header_id )),
18 
19        po_ame_setup_pvt. get_rate_type (MAX (pl.requisition_header_id ))
20 
21   FROM po_requisition_lines_all pl
22 
23  WHERE     requisition_header_id = po_ame_setup_pvt.get_new_req_header_id (:transactionId )
24 
25        AND NVL (cancel_flag, 'N') = 'N'
26 
27        AND NVL (modified_by_agent_flag , 'N') = 'N'

 (2). 建立 Condition

       

(3). 建立 Action Type

        

        

(4). 建立 Approval Groups

        

 

4. 建立AME的Rule

(1). 建立 Rule Detail        

        

(2). 建立 Add Condition

        

(3). 建立 Add Action

        

(4). Review

        

 

三、AME PR测试


1. Run Test测试

(1). 查询Purchase Requisition ID

        

(2). Run Test后,其签合结果

        

 

2. 开立PR正式测试

(1). 开立PR单

        

(2). 进行Approve

        

(3). 查看Notification  

       

 

Thanks and Regards


posted on 2014-06-01 21:09  东方瀚海  阅读(578)  评论(0编辑  收藏  举报