Search Results primary_contact_flag
Overview
The view APPS.PAY_HK_IR56_SPOUSE_DETAILS_V is a Hong Kong localisation object supplied within the Oracle E-Business Suite Payroll (PAY) product family. It exists to expose spouse-level personal data required for Hong Kong Inland Revenue Department (IRD) statutory reporting, most notably Form IR56B, which captures employer's return information for employees and their dependents. The view is documented as VALID in the APPS schema in both EBS 12.1.1 and 12.2.2.
Functionally, the view flattens the relationship between an employee (the "primary" person) and the person recorded as their spouse in Oracle HRMS contact relationships, joined to that spouse's person record. It presents a single denormalised row per qualifying employee-spouse pairing, allowing concurrent programs, reports, and interfaces to retrieve spouse name, national identifier, and passport data without re-implementing the contact-relationship logic. The DATE_END column present in the view text and column list reflects the effective-dated nature of the underlying contact relationship, allowing callers to determine when a spouse relationship ceased to be active.
Underlying Base Objects
The view is defined over two direct data sources joined in each branch of a UNION ALL:
PER_CONTACT_RELATIONSHIPS(referenced as a synonym) — supplies the relationship rows, includingPRIMARY_CONTACT_FLAG,PERSON_ID,CONTACT_PERSON_ID,DATE_START,DATE_END, andCONTACT_TYPE.PER_PEOPLE_F(a view) — supplies the spouse's person attributes, includingNATIONAL_IDENTIFIER, name components, effective dates, and the descriptive flexfield segmentsPER_INFORMATION1andPER_INFORMATION2used here for passport number and country of issue.
The ETRM metadata additionally lists HR_GENERAL, HR_PERSON_NAME, and HR_SECURITY as referenced base objects. These are HRMS packages and security constructs typically inherited through PER_PEOPLE_F and via row-level security applied by HRMS reporting. The two branches of the UNION ALL handle the case where a spouse is flagged as the primary contact (by PRIMARY_CONTACT_FLAG = 'Y'), and the fallback case where no primary spouse contact exists for the employee.
Key Columns
PERSON_ID— the employee (primary person) identifier.CONTACT_PERSON_ID— the spouse's person identifier.DATE_START/DATE_END— the effective start and end dates of the spouse contact relationship, used to determine whether the relationship is currently active.CONTACT_TYPE— hard-coded to'S'(spouse) in the view definition.PRIMARY_CONTACT_FLAG— indicates the primary spouse contact.SPOUSE_NATIONAL_IDENTIFIER,SPOUSE_LAST_NAME,SPOUSE_MIDDLE_NAMES,SPOUSE_FIRST_NAME— spouse identity attributes for IR56B reporting.SPOUSE_PASSPORT_NUMBER,SPOUSE_COUNTRY_OF_ISSUE— derived fromPER_INFORMATION1andPER_INFORMATION2flexfield segments.SPOUSE_EFFECTIVE_START_DATE/SPOUSE_EFFECTIVE_END_DATE— effective dating of the spouse person record itself.
Common Use Cases and Queries
Typical usage is within Hong Kong payroll reporting and IR56 extract programs. A simple query to list current spouses might filter on the absence of a DATE_END:
- Identifying employees with a currently active spouse relationship:
SELECT PERSON_ID, CONTACT_PERSON_ID, SPOUSE_LAST_NAME, DATE_END FROM APPS.PAY_HK_IR56_SPOUSE_DETAILS_V WHERE DATE_END IS NULL OR DATE_END > SYSDATE; - Retrieving passport information for IR56B:
SELECT PERSON_ID, SPOUSE_PASSPORT_NUMBER, SPOUSE_COUNTRY_OF_ISSUE FROM APPS.PAY_HK_IR56_SPOUSE_DETAILS_V; - Determining historical spouse relationships by constraining
DATE_STARTandDATE_ENDto a reporting period.
-
View: PAY_HK_IR56_SPOUSE_DETAILS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PAY.PAY_HK_IR56_SPOUSE_DETAILS_V, object_name:PAY_HK_IR56_SPOUSE_DETAILS_V, status:VALID, product: PAY - Payroll , description: Hong Kong localisation view. , implementation_dba_data: APPS.PAY_HK_IR56_SPOUSE_DETAILS_V ,
-
VIEW: APPS.PAY_HK_IR56_SPOUSE_DETAILS_V
12.2.2
-
VIEW: OSM.AS_LEAD_CONTACTS_ALL#
12.2.2
-
VIEW: APPS.PAY_HK_IR56_SPOUSE_DETAILS_V
12.1.1
-
VIEW: OSM.AS_SALES_LEAD_CONTACTS#
12.2.2
-
View: PAY_HK_IR56_SPOUSE_DETAILS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PAY.PAY_HK_IR56_SPOUSE_DETAILS_V, object_name:PAY_HK_IR56_SPOUSE_DETAILS_V, status:VALID, product: PAY - Payroll , description: Hong Kong localisation view. , implementation_dba_data: APPS.PAY_HK_IR56_SPOUSE_DETAILS_V ,
-
VIEW: JTF.JTF_TAE_RPT_OBJ_WINNERS#
12.2.2
-
VIEW: JTF.JTF_TERR_RSC_ALL#
12.2.2
-
View: JTF_TERR_RSC
12.1.1
product: JTF - CRM Foundation , description: Same as JTF_TERR_RSC_ALL table , implementation_dba_data: Not implemented in this database ,
-
View: JTF_TERR_RSC
12.2.2
product: JTF - CRM Foundation , description: Same as JTF_TERR_RSC_ALL table , implementation_dba_data: Not implemented in this database ,
-
VIEW: APPS.AMS_LEAD_CONTACTS_V
12.2.2
-
VIEW: HR.PER_ROLES#
12.2.2
-
VIEW: HR.PER_CONTACT_RELATIONSHIPS#
12.2.2
-
View: AMS_LEAD_CONTACTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_LEAD_CONTACTS_V, object_name:AMS_LEAD_CONTACTS_V, status:VALID, product: AMS - Marketing , description: This view is used by Discoverer Business Area: List generation folders.Contains contacts linked to sales opportunities , implementation_dba_data: APPS.AMS_LEAD_CONTACTS_V ,
-
View: AMS_LEAD_CONTACTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_LEAD_CONTACTS_V, object_name:AMS_LEAD_CONTACTS_V, status:VALID, product: AMS - Marketing , description: This view is used by Discoverer Business Area: List generation folders.Contains contacts linked to sales opportunities , implementation_dba_data: APPS.AMS_LEAD_CONTACTS_V ,
-
View: AS_LEAD_CONTACTS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AS.AS_LEAD_CONTACTS, object_name:AS_LEAD_CONTACTS, status:VALID, product: AS - Sales Foundation , description: Sales opportunity contacts (multi-org) , implementation_dba_data: APPS.AS_LEAD_CONTACTS ,
-
VIEW: APPS.AS_LEAD_CONTACTS
12.2.2
-
VIEW: APPS.AMS_LEAD_CONTACTS_V
12.1.1
-
View: AS_LEAD_CONTACTS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AS.AS_LEAD_CONTACTS, object_name:AS_LEAD_CONTACTS, status:VALID, product: AS - Sales Foundation , description: Sales opportunity contacts (multi-org) , implementation_dba_data: APPS.AS_LEAD_CONTACTS ,
-
VIEW: APPS.AS_LEAD_CONTACTS
12.1.1
-
TABLE: JTF.JTF_TAE_1001_LEAD_WINNERS
12.2.2
owner:JTF, object_type:TABLE, object_name:JTF_TAE_1001_LEAD_WINNERS, status:VALID,
-
TABLE: JTF.JTF_TAE_1001_QUOTE_WINNERS
12.2.2
owner:JTF, object_type:TABLE, object_name:JTF_TAE_1001_QUOTE_WINNERS, status:VALID,
-
APPS.PER_ROL_SHD SQL Statements
12.1.1
-
APPS.PER_ROL_SHD SQL Statements
12.2.2
-
TABLE: JTF.JTF_TAE_1001_LEAD_WINNERS
12.1.1
owner:JTF, object_type:TABLE, object_name:JTF_TAE_1001_LEAD_WINNERS, status:VALID,
-
TABLE: JTF.JTF_TAE_1001_PROP_WINNERS
12.2.2
owner:JTF, object_type:TABLE, object_name:JTF_TAE_1001_PROP_WINNERS, status:VALID,
-
VIEW: JTF.JTF_TAE_RPT_OBJ_WINNERS#
12.2.2
owner:JTF, object_type:VIEW, object_name:JTF_TAE_RPT_OBJ_WINNERS#, status:VALID,
-
VIEW: APPS.AMS_LEAD_CONTACTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_LEAD_CONTACTS_V, object_name:AMS_LEAD_CONTACTS_V, status:VALID,
-
TABLE: JTF.JTF_TAE_1001_SC_WINNERS
12.2.2
owner:JTF, object_type:TABLE, object_name:JTF_TAE_1001_SC_WINNERS, status:VALID,
-
TABLE: JTF.JTF_TAE_1001_ACCOUNT_WINNERS
12.2.2
owner:JTF, object_type:TABLE, object_name:JTF_TAE_1001_ACCOUNT_WINNERS, status:VALID,
-
VIEW: APPS.PAY_HK_IR56_SPOUSE_DETAILS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PAY.PAY_HK_IR56_SPOUSE_DETAILS_V, object_name:PAY_HK_IR56_SPOUSE_DETAILS_V, status:VALID,
-
VIEW: APPS.PAY_HK_IR56_SPOUSE_DETAILS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PAY.PAY_HK_IR56_SPOUSE_DETAILS_V, object_name:PAY_HK_IR56_SPOUSE_DETAILS_V, status:VALID,
-
VIEW: OSM.AS_SALES_LEAD_CONTACTS#
12.2.2
owner:OSM, object_type:VIEW, object_name:AS_SALES_LEAD_CONTACTS#, status:VALID,
-
TABLE: JTF.JTF_TAE_1600_CUST_WINNERS
12.2.2
owner:JTF, object_type:TABLE, object_name:JTF_TAE_1600_CUST_WINNERS, status:VALID,
-
TABLE: JTF.JTF_TAE_1001_OPPOR_WINNERS
12.2.2
owner:JTF, object_type:TABLE, object_name:JTF_TAE_1001_OPPOR_WINNERS, status:VALID,
-
TABLE: JTF.JTF_TAE_1600_CUST_WINNERS
12.1.1
owner:JTF, object_type:TABLE, object_name:JTF_TAE_1600_CUST_WINNERS, status:VALID,
-
TABLE: JTF.JTF_TAE_1001_OPPOR_WINNERS
12.1.1
owner:JTF, object_type:TABLE, object_name:JTF_TAE_1001_OPPOR_WINNERS, status:VALID,
-
TABLE: JTF.JTF_TAE_1001_PROP_WINNERS
12.1.1
owner:JTF, object_type:TABLE, object_name:JTF_TAE_1001_PROP_WINNERS, status:VALID,
-
TABLE: JTF.JTF_TAE_1001_QUOTE_WINNERS
12.1.1
owner:JTF, object_type:TABLE, object_name:JTF_TAE_1001_QUOTE_WINNERS, status:VALID,
-
TABLE: JTF.JTF_TAE_1001_SC_WINNERS
12.1.1
owner:JTF, object_type:TABLE, object_name:JTF_TAE_1001_SC_WINNERS, status:VALID,
-
TABLE: JTF.JTF_TAE_1001_ACCOUNT_WINNERS
12.1.1
owner:JTF, object_type:TABLE, object_name:JTF_TAE_1001_ACCOUNT_WINNERS, status:VALID,
-
VIEW: OSM.AS_LEAD_CONTACTS_ALL#
12.2.2
owner:OSM, object_type:VIEW, object_name:AS_LEAD_CONTACTS_ALL#, status:VALID,
-
VIEW: APPS.AMS_LEAD_CONTACTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_LEAD_CONTACTS_V, object_name:AMS_LEAD_CONTACTS_V, status:VALID,
-
VIEW: JTF.JTF_TERR_RSC_ALL#
12.2.2
owner:JTF, object_type:VIEW, object_name:JTF_TERR_RSC_ALL#, status:VALID,
-
VIEW: APPS.HR_PAY_INTERFACE_CONTACTS_V
12.2.2
owner:APPS, object_type:VIEW, object_name:HR_PAY_INTERFACE_CONTACTS_V, status:VALID,
-
VIEW: APPS.HR_PAY_INTERFACE_CONTACTS_V
12.1.1
owner:APPS, object_type:VIEW, object_name:HR_PAY_INTERFACE_CONTACTS_V, status:VALID,
-
VIEW: HR.PER_ROLES#
12.2.2
owner:HR, object_type:VIEW, object_name:PER_ROLES#, status:VALID,
-
APPS.AS_SALES_LEAD_CONTACTS_PVT SQL Statements
12.1.1
-
APPS.PER_CTR_SHD SQL Statements
12.1.1
-
TABLE: JTF.JTF_TAE_RPT_OBJ_WINNERS
12.2.2
owner:JTF, object_type:TABLE, fnd_design_data:JTF.JTF_TAE_RPT_OBJ_WINNERS, object_name:JTF_TAE_RPT_OBJ_WINNERS, status:VALID,