增加Choose ORG功能:
(1): 首先在parameter中加上CHART_OF_ACCOUNTS_ID(number),ORG_NAME(char),ORG_CODE(char),ORG_ID(number)四个参数
其中org_id指的是库存组织ID;
(2):在form level 的trigger中的pre—form中加上FND_ORG.CHOOSE_ORG;
(3):在form level 的trigger中的when—new—form—instance中加上
APP_WINDOW.SET_TITLE('window_name',:PARAMETER.ORG_CODE);其中window_name是window 的名字,用于设置window的title
补充OU ID,库存组织ID之间的关系
-
SELECT hou.organization_id ou_org_id, --org_id
-
hou.name ou_name, --ou名称
-
ood.organization_id org_org_id, --库存组织id
-
ood.organization_code org_org_code --库存组织代码
-
FROM hr_organization_information hoi, --组织分类表
-
hr_operating_units hou, --ou视图
-
org_organization_definitions ood --库存组织定义视图
-
WHERE hoi.org_information1 = 'OPERATING_UNIT'
-
AND hoi.organization_id = hou.organization_id
-
AND ood.operating_unit = hoi.organization_id
阅读(488) | 评论(0) | 转发(0) |