DBA Data[Home] [Help]

APPS.JTF_RS_ROLE_RELATE_VUHK dependencies on JTF_RS_ROLES_B

Line 1008: jtf_rs_roles_b rb,

1004: from jtf_rs_team_members tm,
1005: jtf_rs_salesreps sr,
1006: jtf_rs_team_usages tu,
1007: jtf_rs_role_relations rr,
1008: jtf_rs_roles_b rb,
1009: jtf_rs_teams_vl t
1010: where rr.role_relate_id = p_role_relate_id
1011: and rr.role_resource_type(+) = 'RS_TEAM_MEMBER'
1012: and tm.resource_type = 'INDIVIDUAL'

Line 1030: jtf_rs_roles_b ro

1026: SELECT r.manager_flag, r.group_id, s.salesrep_id
1027: FROM jtf_rs_group_usages u,
1028: jtf_rs_group_mbr_role_vl r,
1029: cn_rs_salesreps s,
1030: jtf_rs_roles_b ro
1031: WHERE r.role_relate_id = p_role_relate_id
1032: AND u.group_id = r.group_id
1033: AND u.usage = 'SALES_COMP'
1034: AND ro.role_id = r.role_id

Line 1050: jtf_rs_roles_b ro,

1046: nvl(r.end_date_active, l_max_date)) end_date
1047: FROM jtf_rs_group_usages u,
1048: jtf_rs_group_mbr_role_vl r,
1049: cn_rs_salesreps s, -- single-org view
1050: jtf_rs_roles_b ro,
1051: cn_srp_comp_teams_v srt,
1052: cn_comp_teams ct
1053: WHERE r.role_relate_id = p_role_relate_id
1054: AND s.salesrep_id = p_salesrep_id -- safe since single-org context

Line 1079: from jtf_rs_roles_b

1075: p_return_code := fnd_api.g_ret_sts_success;
1076:
1077: -- get usage for the role (can't fail)
1078: select role_type_code into l_usage
1079: from jtf_rs_roles_b
1080: where role_id = P_ROLE_ID;
1081:
1082: -- only proceed if usage is SALES_COMP or SALES_COMP_PAYMENT_ANALIST
1083: IF l_usage <> 'SALES_COMP' AND l_usage <> 'SALES_COMP_PAYMENT_ANALIST' THEN

Line 1108: from jtf_rs_role_relations rr, jtf_rs_roles_b r

1104: IF p_role_resource_type = 'RS_INDIVIDUAL' THEN
1105: -- looks like spelling error but this is correct...
1106: IF l_usage = 'SALES_COMP_PAYMENT_ANALIST' THEN
1107: select count(1) into l_count
1108: from jtf_rs_role_relations rr, jtf_rs_roles_b r
1109: where rr.role_resource_id = P_ROLE_RESOURCE_ID
1110: and rr.role_resource_type = 'RS_INDIVIDUAL'
1111: and rr.delete_flag = 'N'
1112: and r.role_id = rr.role_id

Line 1132: from jtf_rs_role_relations rr, jtf_rs_roles_b r

1128: end if; -- l_usage = 'SALES_COMP_PAYMENT_ANALIST'
1129:
1130: IF l_usage = 'SALES_COMP' THEN
1131: select count(1) into l_count
1132: from jtf_rs_role_relations rr, jtf_rs_roles_b r
1133: where rr.role_resource_id = P_ROLE_RESOURCE_ID
1134: and rr.role_resource_type = 'RS_INDIVIDUAL'
1135: and rr.delete_flag = 'N'
1136: and r.role_id = rr.role_id

Line 1157: from jtf_rs_role_relations rr, jtf_rs_roles_b r

1153: -- check PAYEE role
1154: IF p_role_id = G_PAYEE_ROLE then
1155: -- payee cannot have any other sales comp role
1156: select count(1) into l_count
1157: from jtf_rs_role_relations rr, jtf_rs_roles_b r
1158: where rr.role_resource_id = P_ROLE_RESOURCE_ID
1159: and rr.role_resource_type = 'RS_INDIVIDUAL'
1160: and rr.delete_flag = 'N'
1161: and r.role_id = rr.role_id

Line 1466: jtf_rs_roles_b ro,

1462: nvl(l_end_date, l_max_date)) end_date
1463: FROM jtf_rs_group_usages u,
1464: jtf_rs_group_mbr_role_vl r,
1465: cn_rs_salesreps s,
1466: jtf_rs_roles_b ro,
1467: cn_srp_comp_teams_v srt,
1468: cn_comp_teams ct
1469: WHERE r.role_relate_id = p_role_relate_id
1470: AND s.salesrep_id = p_salesrep_id

Line 1495: from jtf_rs_role_relations rr, jtf_rs_roles_b r

1491:
1492: -- get usage for the role (can't fail)
1493: select rr.role_resource_type, r.role_type_code, r.role_id, rr.role_resource_id
1494: INTO l_role_resource_type, l_usage, l_role_id, l_role_resource_id
1495: from jtf_rs_role_relations rr, jtf_rs_roles_b r
1496: where rr.role_relate_id = p_role_relate_id
1497: and rr.role_id = r.role_id;
1498:
1499: -- only proceed if usage is SALES_COMP or SALES_COMP_PAYMENT_ANALIST

Line 1514: jtf_rs_roles_b r

1510: AND EXISTS
1511: (
1512: SELECT NULL
1513: FROM jtf_rs_role_relations rr,
1514: jtf_rs_roles_b r
1515: WHERE rrr.role_resource_id = rr.role_resource_id
1516: AND rrr.role_relate_id <> rr.role_relate_id
1517: AND rr.role_resource_type = 'RS_INDIVIDUAL'
1518: AND rr.delete_flag = 'N'

Line 1543: jtf_rs_roles_b r

1539: AND EXISTS
1540: (
1541: SELECT NULL
1542: FROM jtf_rs_role_relations rr,
1543: jtf_rs_roles_b r
1544: WHERE rrr.role_resource_id = rr.role_resource_id
1545: AND rrr.role_relate_id <> rr.role_relate_id
1546: AND rr.role_resource_type = 'RS_INDIVIDUAL'
1547: AND rr.delete_flag = 'N'

Line 1793: jtf_rs_roles_b r

1789:
1790: cursor get_role_id is
1791: select rr.role_id
1792: from jtf_rs_role_relations rr,
1793: jtf_rs_roles_b r
1794: where rr.role_relate_id = p_role_relate_id
1795: AND rr.role_id = r.role_id
1796: AND r.role_type_code = 'SALES_COMP'
1797: AND rr.role_resource_type = 'RS_INDIVIDUAL'

Line 1866: jtf_rs_roles_b rb,

1862: from jtf_rs_team_members tm,
1863: jtf_rs_salesreps sr,
1864: jtf_rs_team_usages tu,
1865: jtf_rs_role_relations rr,
1866: jtf_rs_roles_b rb,
1867: jtf_rs_teams_vl t
1868: where rr.role_relate_id = p_role_relate_id
1869: and rr.role_resource_type(+) = 'RS_TEAM_MEMBER'
1870: and tm.resource_type = 'INDIVIDUAL'

Line 1904: jtf_rs_roles_b ro,

1900: Least(nvl(ct.end_date_active, l_max_date), nvl(r.end_date_active, l_max_date)) end_date
1901: FROM jtf_rs_group_usages u,
1902: jtf_rs_group_mbr_role_vl r,
1903: cn_rs_salesreps s,
1904: jtf_rs_roles_b ro,
1905: cn_srp_comp_teams_v srt,
1906: cn_comp_teams ct
1907: WHERE r.role_relate_id = p_role_relate_id
1908: AND s.salesrep_id = p_salesrep_id

Line 1935: from jtf_rs_role_relations rr, jtf_rs_roles_b r

1931: select rr.role_resource_type, r.role_type_code, r.role_id,
1932: rr.role_resource_id, start_date_active, end_date_active
1933: INTO l_role_resource_type, l_usage, l_role_id,
1934: l_role_resource_id, l_rr_start_date, l_rr_end_date
1935: from jtf_rs_role_relations rr, jtf_rs_roles_b r
1936: where rr.role_relate_id = p_role_relate_id
1937: and rr.role_id = r.role_id;
1938:
1939: -- only proceed if usage is SALES_COMP or SALES_COMP_PAYMENT_ANALIST

Line 2208: jtf_rs_roles_b rb,

2204: from jtf_rs_team_members tm,
2205: jtf_rs_salesreps sr,
2206: jtf_rs_team_usages tu,
2207: jtf_rs_role_relations rr,
2208: jtf_rs_roles_b rb,
2209: jtf_rs_teams_vl t
2210: where rr.role_relate_id = p_role_relate_id
2211: and rr.role_resource_type(+) = 'RS_TEAM_MEMBER'
2212: and tm.resource_type = 'INDIVIDUAL'

Line 2250: jtf_rs_roles_b ro,

2246: Least(nvl(ct.end_date_active, l_max_date), nvl(l_end_date, l_max_date)) end_date
2247: FROM jtf_rs_group_usages u,
2248: jtf_rs_group_mbr_role_vl r,
2249: cn_rs_salesreps s,
2250: jtf_rs_roles_b ro,
2251: cn_srp_comp_teams_v srt,
2252: cn_comp_teams ct
2253: WHERE r.role_relate_id = p_role_relate_id
2254: AND s.salesrep_id = p_salesrep_id

Line 2276: from jtf_rs_role_relations rr, jtf_rs_roles_b r

2272:
2273: -- get usage for the role (can't fail)
2274: select rr.role_resource_type, r.role_type_code, r.role_id, rr.role_resource_id
2275: INTO l_role_resource_type, l_usage, l_role_id, l_role_resource_id
2276: from jtf_rs_role_relations rr, jtf_rs_roles_b r
2277: where rr.role_relate_id = p_role_relate_id
2278: and rr.role_id = r.role_id;
2279:
2280: -- only proceed if usage is SALES_COMP or SALES_COMP_PAYMENT_ANALIST