EBS:审批组分配

EBS PO审批组分配 


SELECT * FROM APPS.PER_JOBS_VL PJ -- 职务表
;

SELECT * FROM APPS.PER_POSITIONS_V PPOS -- 职位表

SELECT * FROM APPS.PO_CONTROL_GROUPS PCG -- 审批组


--
SELECT * FROM APPS.PO_CONTROL_RULES PCR -- 审批规则
WHERE PCR.CONTROL_GROUP_ID = 177

SELECT * FROM PO.po_control_functions pocf -- 单据类型

 

EBS 采购模块审批流的标准视图

-- 分配审批组(N:PO>>设置>>审批>>审批分配)

 SELECT HOU.SHORT_CODE ||'-'|| HOU.NAME AS OU_NAME, -- 业务实体
        PPOS.POSITION_ID ,
        PPOS.NAME AS POSITION_NAME, -- 职位名称 
        PJ.JOB_ID, 
        PJ.NAME JOB_NAME , -- 任务名称(职务) 
        PCG.CONTROL_GROUP_ID,
        PCG.CONTROL_GROUP_NAME , -- 审批组名称 
        PCG.DESCRIPTION AS CONTROL_GROUP_DESC,  -- 审批组说明 
        PCR.CONTROL_RULE_ID, 
        PCR.AMOUNT_LIMIT -- 限额 
       -- PPC.*
  FROM  APPS.HR_OPERATING_UNITS HOU,
        APPS.PER_POSITIONS_V PPOS,  -- 职位表
        APPS.PER_JOBS_VL  PJ, -- 职务表
        APPS.PO_POSITION_CONTROLS  PPC,  -- 审批分配
        APPS.PO_CONTROL_GROUPS PCG, -- 审批组 
        APPS.PO_CONTROL_RULES PCR -- 审批规则
  WHERE PPC.ORG_ID = 242 
   AND PPC.CONTROL_GROUP_ID IN (163,164, 177 )
   AND PPC.JOB_ID IN ( 70, 76, 78,80 )
   AND PPC.JOB_ID = PJ.JOB_ID 
   AND PPC.POSITION_ID = PPOS.POSITION_ID 
   AND PPC.CONTROL_GROUP_ID = PCG.CONTROL_GROUP_ID 
   AND PPC.ORG_ID = HOU.ORGANIZATION_ID 
   AND PCG.CONTROL_GROUP_ID = PCR.CONTROL_GROUP_ID 
   AND PCR.RULE_TYPE_CODE = 'INCLUDE' -- 类型
   AND PCR.OBJECT_CODE = 'DOCUMENT_TOTAL' -- DOCUMENT_TOTAL:单据总额, ACCOUNT_RANGE:账户范围
  ORDER BY PPOS.NAME, PPC.CONTROL_GROUP_ID  
  

  

posted @ 2024-11-05 20:30  samrv  阅读(6)  评论(0编辑  收藏  举报