0% found this document useful (0 votes)
107 views2 pages

DBI Definition Query

This document contains an SQL query that selects data from various tables to return information about a person, including their assignments, business unit, department, and legal entity. It also contains the code for a payroll process that sets the start and end dates for transfer allowance eligibility based on an assignment's effective dates within a given pay period range.

Uploaded by

Abbas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
107 views2 pages

DBI Definition Query

This document contains an SQL query that selects data from various tables to return information about a person, including their assignments, business unit, department, and legal entity. It also contains the code for a payroll process that sets the start and end dates for transfer allowance eligibility based on an assignment's effective dates within a given pay period range.

Uploaded by

Abbas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

select DISTINCT

fat.module_name, fdg.base_group_name, fdg.group_name, fdi.base_user_name,


fdi.user_name, fdi.description, fdi.data_type, fdi.definition_text,
fue.base_user_entity_name, fue.description description_1,
fr.base_route_name, TO_CHAR(fr.text), fr.multi_row_flag,
(select substr(sys.stragg(','||base_context_name),2) context
from fusion.ff_route_context_usages i, fusion.ff_contexts_vl j
where i.context_id = j.context_id
and i.route_id = fr.route_id ) contexts_used,
(select substr(sys.stragg(','||parameter_name),2) context
from fusion.ff_route_parameters
where route_id = fr.route_id) parameters,
(select substr(sys.stragg(','||base_context_name),2) context
from fusion.ff_dbi_groups_vl a, fusion.ff_dbi_usages b,
fusion.ff_database_items_vl c, fusion.ff_contexts_vl d
where a.context_id = d.context_id
and a.dbi_group_id = b.dbi_group_id
and b.dbi_id = c.database_item_id
and c.user_entity_id = fue.user_entity_id) contexts_set
from fusion.ff_database_items_vl fdi, fusion.ff_dbi_usages fdu,
fusion.ff_dbi_groups_vl fdg, fusion.fnd_appl_taxonomy_vl fat,
fusion.ff_user_entities_vl fue, fusion.ff_routes_vl fr
where fdi.database_item_id = fdu.dbi_id(+)
and fdu.dbi_group_id = fdg.dbi_group_id(+)
/*and fdi.module_id = fat.module_id*/
and fdi.base_user_name like
'%PER_PERSON_EIT_EFF_USER_HOUSING_ALLOWANCE_ACCOMMODATION_PROVIDED%'
and fdi.user_entity_id = fue.user_entity_id
and fue.route_id = fr.route_id
order by module_name, fdi.base_user_name

SELECT * FROM
PER_PEOPLE_EXTRA_INFO_F target
where target.PERSON_ID = '300000002136515'

300000001245094

SELECT * FROM
per_all_assignments_f paam,
hr_all_organization_units_f_vl bu,
hr_all_organization_units_f_vl dept,
hr_all_organization_units_f_vl le
where paam.assignment_id = &B1
and trunc(&B2) between paam.effective_start_date and paam.effective_end_date
and paam.business_unit_id = bu.organization_id(+)
and paam.organization_id = dept.organization_id(+)
and paam.legal_entity_id = le.organization_id(+)
and trunc(&B2) between bu.effective_start_date(+) and bu.effective_end_date(+)
and trunc(&B2) between dept.effective_start_date(+) and
dept.effective_end_date(+)
and trunc(&B2) between le.effective_start_date(+) and le.effective_end_date(+)

https://global.gotomeeting.com/join/473305357
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Author : Victor Saha
Name : VIC_TRANSFER_ALWNC_ELIG_DATES
Type : Payroll Access to HR
Purpose : To pass start and end dates of Transfer Allowance.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

/*Defaulting DBI*/
default for PER_ASSIGNMENT_EIT_EFF_USER_TRANSFER_ALLOWANCE_TRANSFER_ALLOWANCE is '
'

/*Defaulting Input Values and Variables*/


default for L_HR_ASSIGNMENT_ID is 0
default for PAY_EARN_PERIOD_START is '0001/01/01 00:00:00' (date)
default for PAY_EARN_PERIOD_END is '4712/12/31 00:00:00' (date)

/* Declaring Input Values*/


inputs are L_HR_ASSIGNMENT_ID (NUMBER),
PAY_EARN_PERIOD_START,
PAY_EARN_PERIOD_END

CHANGE_CONTEXTS(HR_ASSIGNMENT_ID = L_HR_ASSIGNMENT_ID)
(
while (PAY_EARN_PERIOD_START < PAY_EARN_PERIOD_END) loop
(
CHANGE_CONTEXTS(EFFECTIVE_DATE = PAY_EARN_PERIOD_START)
(
)
PAY_EARN_PERIOD_START = add_days(PAY_EARN_PERIOD_START,1)
)
)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy