DBA Data[Home] [Help]

APPS.IMC_REPORTS_SUMMARY_PKG dependencies on HZ_RELATIONSHIP_TYPES

Line 1328: , HZ_CODE_ASSIGNMENTS ca, HZ_RELATIONSHIP_TYPES rt

1324: -- get contact count
1325: cursor get_cnt_count is
1326: SELECT count(1)
1327: FROM HZ_ORG_CONTACTS oc, HZ_RELATIONSHIPS r, HZ_PARTIES p
1328: , HZ_CODE_ASSIGNMENTS ca, HZ_RELATIONSHIP_TYPES rt
1329: WHERE oc.party_relationship_id = r.relationship_id
1330: AND r.subject_type = 'PERSON'
1331: AND r.subject_id = p.party_id
1332: AND ca.class_category = 'RELATIONSHIP_TYPE_GROUP'

Line 1333: AND ca.owner_table_name = 'HZ_RELATIONSHIP_TYPES'

1329: WHERE oc.party_relationship_id = r.relationship_id
1330: AND r.subject_type = 'PERSON'
1331: AND r.subject_id = p.party_id
1332: AND ca.class_category = 'RELATIONSHIP_TYPE_GROUP'
1333: AND ca.owner_table_name = 'HZ_RELATIONSHIP_TYPES'
1334: AND ca.class_code = 'PARTY_REL_GRP_CONTACTS'
1335: AND rt.relationship_type_id = ca.owner_table_id
1336: AND rt.subject_type = 'PERSON'
1337: AND rt.forward_rel_code = r.relationship_code

Line 2521: , HZ_CODE_ASSIGNMENTS ca, HZ_RELATIONSHIP_TYPES rt

2517: -- count CONTACT
2518: cursor get_contact_count(l_date DATE) is
2519: SELECT count(1)
2520: FROM HZ_ORG_CONTACTS oc, HZ_RELATIONSHIPS r, HZ_PARTIES p
2521: , HZ_CODE_ASSIGNMENTS ca, HZ_RELATIONSHIP_TYPES rt
2522: WHERE oc.party_relationship_id = r.relationship_id
2523: AND r.subject_type = 'PERSON'
2524: AND r.subject_id = p.party_id
2525: AND ca.class_category = 'RELATIONSHIP_TYPE_GROUP'

Line 2526: AND ca.owner_table_name = 'HZ_RELATIONSHIP_TYPES'

2522: WHERE oc.party_relationship_id = r.relationship_id
2523: AND r.subject_type = 'PERSON'
2524: AND r.subject_id = p.party_id
2525: AND ca.class_category = 'RELATIONSHIP_TYPE_GROUP'
2526: AND ca.owner_table_name = 'HZ_RELATIONSHIP_TYPES'
2527: AND ca.class_code = 'PARTY_REL_GRP_CONTACTS'
2528: AND rt.relationship_type_id = ca.owner_table_id
2529: AND rt.subject_type = 'PERSON'
2530: AND rt.forward_rel_code = r.relationship_code

Line 2624: ' , HZ_CODE_ASSIGNMENTS ca, HZ_RELATIONSHIP_TYPES rt'||

2620: BEGIN
2621:
2622: IF(p_party_type = 'CONTACT') THEN
2623: str := ' from HZ_ORG_CONTACTS oc, HZ_RELATIONSHIPS r, HZ_PARTIES pty'||
2624: ' , HZ_CODE_ASSIGNMENTS ca, HZ_RELATIONSHIP_TYPES rt'||
2625: ' where pty.status in (''A'',''I'')'||
2626: ' and oc.party_relationship_id = r.relationship_id' ||
2627: ' and r.subject_type = ''PERSON'''||
2628: ' and r.party_id = pty.party_id'||

Line 2630: ' and ca.owner_table_name = ''HZ_RELATIONSHIP_TYPES'''||

2626: ' and oc.party_relationship_id = r.relationship_id' ||
2627: ' and r.subject_type = ''PERSON'''||
2628: ' and r.party_id = pty.party_id'||
2629: ' and ca.class_category = ''RELATIONSHIP_TYPE_GROUP'''||
2630: ' and ca.owner_table_name = ''HZ_RELATIONSHIP_TYPES'''||
2631: ' and ca.class_code = ''PARTY_REL_GRP_CONTACTS'''||
2632: ' and rt.relationship_type_id = ca.owner_table_id'||
2633: ' and rt.subject_type = ''PERSON'''||
2634: ' and rt.forward_rel_code = r.relationship_code'||

Line 2736: ' HZ_CODE_ASSIGNMENTS ca, HZ_RELATIONSHIP_TYPES rt'||

2732:
2733: IF(p_party_type = 'CONTACT') THEN
2734: str := ' from HZ_PARTIES pty, HZ_CONTACT_POINTS contpt,'||
2735: ' HZ_ORG_CONTACTS oc, HZ_RELATIONSHIPS r,'||
2736: ' HZ_CODE_ASSIGNMENTS ca, HZ_RELATIONSHIP_TYPES rt'||
2737: ' where pty.status in (''A'',''I'')'||
2738: ' and oc.party_relationship_id = r.relationship_id' ||
2739: ' and r.subject_type = ''PERSON'''||
2740: ' and r.party_id = pty.party_id'||

Line 2742: ' and ca.owner_table_name = ''HZ_RELATIONSHIP_TYPES'''||

2738: ' and oc.party_relationship_id = r.relationship_id' ||
2739: ' and r.subject_type = ''PERSON'''||
2740: ' and r.party_id = pty.party_id'||
2741: ' and ca.class_category = ''RELATIONSHIP_TYPE_GROUP'''||
2742: ' and ca.owner_table_name = ''HZ_RELATIONSHIP_TYPES'''||
2743: ' and ca.class_code = ''PARTY_REL_GRP_CONTACTS'''||
2744: ' and rt.relationship_type_id = ca.owner_table_id'||
2745: ' and rt.subject_type = ''PERSON'''||
2746: ' and rt.forward_rel_code = r.relationship_code'||

Line 2785: ' , HZ_CODE_ASSIGNMENTS ca, HZ_RELATIONSHIP_TYPES rt'||

2781: BEGIN
2782:
2783: -- org_contact is only used for contact report
2784: str := ' from HZ_ORG_CONTACTS orgcnt, HZ_RELATIONSHIPS r, HZ_PARTIES pty'||
2785: ' , HZ_CODE_ASSIGNMENTS ca, HZ_RELATIONSHIP_TYPES rt'||
2786: ' where pty.status in (''A'',''I'')'||
2787: ' and orgcnt.party_relationship_id = r.relationship_id' ||
2788: ' and r.subject_type = ''PERSON'''||
2789: ' and r.party_id = pty.party_id'||

Line 2791: ' and ca.owner_table_name = ''HZ_RELATIONSHIP_TYPES'''||

2787: ' and orgcnt.party_relationship_id = r.relationship_id' ||
2788: ' and r.subject_type = ''PERSON'''||
2789: ' and r.party_id = pty.party_id'||
2790: ' and ca.class_category = ''RELATIONSHIP_TYPE_GROUP'''||
2791: ' and ca.owner_table_name = ''HZ_RELATIONSHIP_TYPES'''||
2792: ' and ca.class_code = ''PARTY_REL_GRP_CONTACTS'''||
2793: ' and rt.relationship_type_id = ca.owner_table_id'||
2794: ' and rt.subject_type = ''PERSON'''||
2795: ' and rt.forward_rel_code = r.relationship_code'||

Line 2820: ' , HZ_CODE_ASSIGNMENTS ca, HZ_RELATIONSHIP_TYPES rt'||

2816: BEGIN
2817:
2818: str := ' from (select r.party_id '||p_attribute||
2819: ' from HZ_ORG_CONTACTS orgcnt, HZ_RELATIONSHIPS r, HZ_PARTIES pty'||
2820: ' , HZ_CODE_ASSIGNMENTS ca, HZ_RELATIONSHIP_TYPES rt'||
2821: ' where pty.status in (''A'',''I'')'||
2822: ' and orgcnt.party_relationship_id = r.relationship_id' ||
2823: ' and r.subject_type = ''PERSON'''||
2824: ' and r.party_id = pty.party_id'||

Line 2826: ' and ca.owner_table_name = ''HZ_RELATIONSHIP_TYPES'''||

2822: ' and orgcnt.party_relationship_id = r.relationship_id' ||
2823: ' and r.subject_type = ''PERSON'''||
2824: ' and r.party_id = pty.party_id'||
2825: ' and ca.class_category = ''RELATIONSHIP_TYPE_GROUP'''||
2826: ' and ca.owner_table_name = ''HZ_RELATIONSHIP_TYPES'''||
2827: ' and ca.class_code = ''PARTY_REL_GRP_CONTACTS'''||
2828: ' and rt.relationship_type_id = ca.owner_table_id'||
2829: ' and rt.subject_type = ''PERSON'''||
2830: ' and rt.forward_rel_code = r.relationship_code'||