DBA Data[Home] [Help]

APPS.AS_SALES_LEAD_ASSIGN_PVT dependencies on JTF_RS_GROUP_MEMBERS

Line 355: FROM JTF_RS_GROUP_MEMBERS mem,

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

Line 1024: FROM jtf_rs_group_members m, jtf_rs_groups_b g,

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

Line 1070: FROM jtf_rs_group_members m, jtf_rs_groups_b g,

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

Line 1124: FROM jtf_rs_group_members m, jtf_rs_groups_b g,

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

Line 1178: FROM JTF_RS_GROUP_MEMBERS mem,

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

Line 2148: FROM jtf_rs_group_members m, jtf_rs_groups_b g,

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

Line 2194: FROM jtf_rs_group_members m, jtf_rs_groups_b g,

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

Line 2248: FROM jtf_rs_group_members m, jtf_rs_groups_b g,

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

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

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

Line 4138: FROM JTF_RS_GROUP_MEMBERS mem,

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

Line 4330: FROM JTF_RS_GROUP_MEMBERS mem,

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

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

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

Line 4731: FROM JTF_RS_GROUP_MEMBERS mem,

4727: AND res.user_id = fnd_global.user_id;
4728:
4729: CURSOR c_get_group_id(c_resource_id NUMBER) IS
4730: SELECT grp.group_id
4731: FROM JTF_RS_GROUP_MEMBERS mem,
4732: JTF_RS_ROLE_RELATIONS rrel,
4733: JTF_RS_ROLES_B role,
4734: JTF_RS_GROUP_USAGES u,
4735: JTF_RS_GROUPS_B grp

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

5033: lead_rank_id, qualified_flag, status_code
5034: FROM as_sales_leads
5035: WHERE sales_lead_id = c_sales_lead_id;
5036:
5037: -- A resource may not be in any group. Besides, jtf_rs_group_members
5038: -- may not have person_id for all resources. Therefore, get person_id
5039: -- in this cursor, instead of in the above cursor.
5040: CURSOR c_get_person_id(c_resource_id NUMBER) IS
5041: SELECT res.source_id

Line 5047: FROM JTF_RS_GROUP_MEMBERS mem,

5043: WHERE res.resource_id = c_resource_id;
5044:
5045: CURSOR c_get_group_id(c_resource_id NUMBER) IS
5046: SELECT grp.group_id
5047: FROM JTF_RS_GROUP_MEMBERS mem,
5048: JTF_RS_ROLE_RELATIONS rrel,
5049: JTF_RS_ROLES_B role,
5050: JTF_RS_GROUP_USAGES u,
5051: JTF_RS_GROUPS_B grp

Line 5354: FROM JTF_RS_GROUP_MEMBERS mem,

5350: AND res.user_id = fnd_global.user_id;
5351:
5352: CURSOR c_get_group_id(c_resource_id NUMBER) IS
5353: SELECT grp.group_id
5354: FROM JTF_RS_GROUP_MEMBERS mem,
5355: JTF_RS_ROLE_RELATIONS rrel,
5356: JTF_RS_ROLES_B role,
5357: JTF_RS_GROUP_USAGES u,
5358: JTF_RS_GROUPS_B grp

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

5371: AND SYSDATE BETWEEN grp.start_date_active AND
5372: NVL(grp.end_date_active,SYSDATE)
5373: AND ROWNUM < 2;
5374:
5375: -- A resource may not be in any group. Besides, jtf_rs_group_members
5376: -- may not have person_id for all resources. Therefore, get person_id
5377: -- in this cursor, instead of in the above cursor.
5378: CURSOR c_get_person_id(c_resource_id NUMBER) IS
5379: SELECT res.source_id