首页 > 代码库 > EBS 11i 判断库存组织是否为工程类
EBS 11i 判断库存组织是否为工程类
代码如下:
SELECT COUNT(1) -- INTO v_Count FROM Org_Organization_Definitions Ood, Hr_All_Organization_Units Haou WHERE 1 = 1 AND Ood.Organization_Code = ‘&Organization_Code‘ AND Ood.Organization_Id = Haou.Organization_Id AND Haou.Internal_External_Flag = ‘INT‘ AND EXISTS (SELECT 1 FROM Hr_Organization_Information WHERE Organization_Id = Haou.Organization_Id AND Org_Information_Context = ‘CLASS‘ AND Org_Information1 = ‘PA_EXPENDITURE_ORG‘ AND Org_Information2 = ‘Y‘) AND EXISTS (SELECT 1 FROM Hr_Organization_Information WHERE Organization_Id = Haou.Organization_Id AND Org_Information_Context = ‘CLASS‘ AND Org_Information1 = ‘PJM‘ AND Org_Information2 = ‘Y‘);
count <> 0 则认作工程类库存组织。
本文出自 “路漫漫其修远兮…” 博客,请务必保留此出处http://baser.blog.51cto.com/4153192/1568962
EBS 11i 判断库存组织是否为工程类
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。