DBA Data[Home] [Help]

VIEW: APPS.PAY_GB_BALANCES_V

Source

View Text - Preformatted

SELECT BAL_ASSACT.assignment_id, BAL_ASSACT.assignment_action_id, BAL_ASSACT.action_sequence, BACT.effective_date, BACT.business_group_id, DB.balance_type_id, DB.defined_balance_id, DIM.dimension_name, DIM.balance_dimension_id, DBI.user_name item_name, hr_gbbal.balance(assignment_action_id, DB.defined_balance_id) result_value FROM pay_assignment_actions BAL_ASSACT, pay_payroll_actions BACT, ff_database_items DBI, ff_user_entities UE, pay_defined_balances DB, pay_balance_dimensions DIM WHERE UE.user_entity_id = DBI.user_entity_id AND UE.creator_type = 'B' AND BACT.business_group_id = NVL(UE.business_group_id, BACT.business_group_id) AND UE.creator_id = DB.defined_balance_id AND DIM.balance_dimension_id = DB.balance_dimension_id AND BACT.payroll_action_id = BAL_ASSACT.payroll_action_id
View Text - HTML Formatted

SELECT BAL_ASSACT.ASSIGNMENT_ID
, BAL_ASSACT.ASSIGNMENT_ACTION_ID
, BAL_ASSACT.ACTION_SEQUENCE
, BACT.EFFECTIVE_DATE
, BACT.BUSINESS_GROUP_ID
, DB.BALANCE_TYPE_ID
, DB.DEFINED_BALANCE_ID
, DIM.DIMENSION_NAME
, DIM.BALANCE_DIMENSION_ID
, DBI.USER_NAME ITEM_NAME
, HR_GBBAL.BALANCE(ASSIGNMENT_ACTION_ID
, DB.DEFINED_BALANCE_ID) RESULT_VALUE
FROM PAY_ASSIGNMENT_ACTIONS BAL_ASSACT
, PAY_PAYROLL_ACTIONS BACT
, FF_DATABASE_ITEMS DBI
, FF_USER_ENTITIES UE
, PAY_DEFINED_BALANCES DB
, PAY_BALANCE_DIMENSIONS DIM
WHERE UE.USER_ENTITY_ID = DBI.USER_ENTITY_ID
AND UE.CREATOR_TYPE = 'B'
AND BACT.BUSINESS_GROUP_ID = NVL(UE.BUSINESS_GROUP_ID
, BACT.BUSINESS_GROUP_ID)
AND UE.CREATOR_ID = DB.DEFINED_BALANCE_ID
AND DIM.BALANCE_DIMENSION_ID = DB.BALANCE_DIMENSION_ID
AND BACT.PAYROLL_ACTION_ID = BAL_ASSACT.PAYROLL_ACTION_ID