DBA Data[Home] [Help]

APPS.AS_SALES_LEAD_ASSIGN_PVT dependencies on JTF_RS_GROUP_MEMBERS

Line 354: FROM JTF_RS_GROUP_MEMBERS mem,

350: AND (PARTY.PARTY_TYPE = 'PERSON' OR PARTY.PARTY_TYPE = 'ORGANIZATION');
351:
352: CURSOR C_Get_Sales_Group_Id (X_Resource_Id NUMBER) IS
353: SELECT grp.group_id
354: FROM JTF_RS_GROUP_MEMBERS mem,
355: JTF_RS_ROLE_RELATIONS rrel,
356: JTF_RS_ROLES_B role,
357: JTF_RS_GROUP_USAGES u,
358: JTF_RS_GROUPS_B grp

Line 1023: FROM jtf_rs_group_members m, jtf_rs_groups_b g,

1019: jtf_rs_team_usages tu, jtf_rs_role_relations trr,
1020: jtf_rs_roles_b tr, jtf_rs_resource_extns tres,
1021: (
1022: SELECT m.group_id group_id, m.resource_id resource_id
1023: FROM jtf_rs_group_members m, jtf_rs_groups_b g,
1024: jtf_rs_group_usages u, jtf_rs_role_relations rr,
1025: jtf_rs_roles_b r, jtf_rs_resource_extns res
1026: WHERE
1027: m.group_id = g.group_id

Line 1069: FROM jtf_rs_group_members m, jtf_rs_groups_b g,

1065: SELECT MIN(m.resource_id) resource_id,
1066: MIN(m.person_id) person_id2, MIN(m.group_id) group_id,
1067: MIN(jtm.team_id) team_id, res.category resource_category,
1068: MIN(res.source_id) person_id
1069: FROM jtf_rs_group_members m, jtf_rs_groups_b g,
1070: jtf_rs_group_usages u, jtf_rs_role_relations rr,
1071: jtf_rs_roles_b r, jtf_rs_resource_extns res,
1072: (
1073: Select tm.team_resource_id group_id, t.team_id team_id

Line 1123: FROM jtf_rs_group_members m, jtf_rs_groups_b g,

1119: (
1120: SELECT MIN(m.resource_id) resource_id,
1121: res.category resource_category,
1122: MIN(m.group_id) group_id,MIN(res.source_id) person_id
1123: FROM jtf_rs_group_members m, jtf_rs_groups_b g,
1124: jtf_rs_group_usages u, jtf_rs_role_relations rr,
1125: jtf_rs_roles_b r, jtf_rs_resource_extns res
1126: WHERE
1127: m.group_id = g.group_id

Line 1177: FROM JTF_RS_GROUP_MEMBERS mem,

1173: CURSOR c_get_group_id (c_resource_id NUMBER, c_rs_group_member VARCHAR2,
1174: c_sales VARCHAR2, c_telesales VARCHAR2,
1175: c_fieldsales VARCHAR2, c_prm VARCHAR2, c_y VARCHAR2) IS
1176: SELECT grp.group_id
1177: FROM JTF_RS_GROUP_MEMBERS mem,
1178: JTF_RS_ROLE_RELATIONS rrel,
1179: JTF_RS_ROLES_B role,
1180: JTF_RS_GROUP_USAGES u,
1181: JTF_RS_GROUPS_B grp

Line 2147: FROM jtf_rs_group_members m, jtf_rs_groups_b g,

2143: jtf_rs_team_usages tu, jtf_rs_role_relations trr,
2144: jtf_rs_roles_b tr, jtf_rs_resource_extns tres,
2145: (
2146: SELECT m.group_id group_id, m.resource_id resource_id
2147: FROM jtf_rs_group_members m, jtf_rs_groups_b g,
2148: jtf_rs_group_usages u, jtf_rs_role_relations rr,
2149: jtf_rs_roles_b r, jtf_rs_resource_extns res
2150: WHERE
2151: m.group_id = g.group_id

Line 2193: FROM jtf_rs_group_members m, jtf_rs_groups_b g,

2189: SELECT MIN(m.resource_id) resource_id,
2190: MIN(m.person_id) person_id2, MIN(m.group_id) group_id,
2191: MIN(jtm.team_id) team_id, res.category resource_category,
2192: MIN(res.source_id) person_id
2193: FROM jtf_rs_group_members m, jtf_rs_groups_b g,
2194: jtf_rs_group_usages u, jtf_rs_role_relations rr,
2195: jtf_rs_roles_b r, jtf_rs_resource_extns res,
2196: (
2197: Select tm.team_resource_id group_id, t.team_id team_id

Line 2247: FROM jtf_rs_group_members m, jtf_rs_groups_b g,

2243: (
2244: SELECT MIN(m.resource_id) resource_id,
2245: res.category resource_category,
2246: MIN(m.group_id) group_id,MIN(res.source_id) person_id
2247: FROM jtf_rs_group_members m, jtf_rs_groups_b g,
2248: jtf_rs_group_usages u, jtf_rs_role_relations rr,
2249: jtf_rs_roles_b r, jtf_rs_resource_extns res
2250: WHERE
2251: m.group_id = g.group_id

Line 4114: -- A resource may not be in any group. Besides, jtf_rs_group_members

4110: FROM jtf_rs_resource_extns res
4111: WHERE res.category IN ('EMPLOYEE', 'PARTY')
4112: AND res.user_id = fnd_global.user_id;
4113:
4114: -- A resource may not be in any group. Besides, jtf_rs_group_members
4115: -- may not have person_id for all resources. Therefore, get person_id
4116: -- is this cursor.
4117: CURSOR c_get_person_id(c_resource_id NUMBER) IS
4118: SELECT res.source_id

Line 4137: FROM JTF_RS_GROUP_MEMBERS mem,

4133: c_sales VARCHAR2, c_telesales VARCHAR2,
4134: c_fieldsales VARCHAR2, c_prm VARCHAR2, c_y VARCHAR2)
4135: IS
4136: SELECT grp.group_id
4137: FROM JTF_RS_GROUP_MEMBERS mem,
4138: JTF_RS_ROLE_RELATIONS rrel,
4139: JTF_RS_ROLES_B role,
4140: JTF_RS_GROUP_USAGES u,
4141: JTF_RS_GROUPS_B grp

Line 4327: FROM JTF_RS_GROUP_MEMBERS mem,

4323: AND res.user_id = fnd_global.user_id;
4324:
4325: CURSOR c_get_group_id(c_resource_id NUMBER) IS
4326: SELECT grp.group_id
4327: FROM JTF_RS_GROUP_MEMBERS mem,
4328: JTF_RS_ROLE_RELATIONS rrel,
4329: JTF_RS_ROLES_B role,
4330: JTF_RS_GROUP_USAGES u,
4331: JTF_RS_GROUPS_B grp

Line 4348: -- A resource may not be in any group. Besides, jtf_rs_group_members

4344: AND SYSDATE BETWEEN grp.start_date_active AND
4345: NVL(grp.end_date_active,SYSDATE)
4346: AND ROWNUM < 2;
4347:
4348: -- A resource may not be in any group. Besides, jtf_rs_group_members
4349: -- may not have person_id for all resources. Therefore, get person_id
4350: -- in this cursor, instead of in the above cursor.
4351: CURSOR c_get_person_id(c_resource_id NUMBER) IS
4352: SELECT res.source_id

Line 4708: FROM JTF_RS_GROUP_MEMBERS mem,

4704: AND res.user_id = fnd_global.user_id;
4705:
4706: CURSOR c_get_group_id(c_resource_id NUMBER) IS
4707: SELECT grp.group_id
4708: FROM JTF_RS_GROUP_MEMBERS mem,
4709: JTF_RS_ROLE_RELATIONS rrel,
4710: JTF_RS_ROLES_B role,
4711: JTF_RS_GROUP_USAGES u,
4712: JTF_RS_GROUPS_B grp

Line 5013: -- A resource may not be in any group. Besides, jtf_rs_group_members

5009: lead_rank_id, qualified_flag, status_code
5010: FROM as_sales_leads
5011: WHERE sales_lead_id = c_sales_lead_id;
5012:
5013: -- A resource may not be in any group. Besides, jtf_rs_group_members
5014: -- may not have person_id for all resources. Therefore, get person_id
5015: -- in this cursor, instead of in the above cursor.
5016: CURSOR c_get_person_id(c_resource_id NUMBER) IS
5017: SELECT res.source_id

Line 5023: FROM JTF_RS_GROUP_MEMBERS mem,

5019: WHERE res.resource_id = c_resource_id;
5020:
5021: CURSOR c_get_group_id(c_resource_id NUMBER) IS
5022: SELECT grp.group_id
5023: FROM JTF_RS_GROUP_MEMBERS mem,
5024: JTF_RS_ROLE_RELATIONS rrel,
5025: JTF_RS_ROLES_B role,
5026: JTF_RS_GROUP_USAGES u,
5027: JTF_RS_GROUPS_B grp

Line 5330: FROM JTF_RS_GROUP_MEMBERS mem,

5326: AND res.user_id = fnd_global.user_id;
5327:
5328: CURSOR c_get_group_id(c_resource_id NUMBER) IS
5329: SELECT grp.group_id
5330: FROM JTF_RS_GROUP_MEMBERS mem,
5331: JTF_RS_ROLE_RELATIONS rrel,
5332: JTF_RS_ROLES_B role,
5333: JTF_RS_GROUP_USAGES u,
5334: JTF_RS_GROUPS_B grp

Line 5351: -- A resource may not be in any group. Besides, jtf_rs_group_members

5347: AND SYSDATE BETWEEN grp.start_date_active AND
5348: NVL(grp.end_date_active,SYSDATE)
5349: AND ROWNUM < 2;
5350:
5351: -- A resource may not be in any group. Besides, jtf_rs_group_members
5352: -- may not have person_id for all resources. Therefore, get person_id
5353: -- in this cursor, instead of in the above cursor.
5354: CURSOR c_get_person_id(c_resource_id NUMBER) IS
5355: SELECT res.source_id