Costing of Locations – Query to fetch Location costing details

Oracle Fusion PayrollCostingBI PublisherSQLQuery

Lists the costing configuration done at the location level. It is really helpful to verify or reconcile the costing configuration before going live with the payroll application or after any mass changes.

Only 2 segments are listed as a sample. You may include more segments as configured in your cost allocation key flexfield.

Costing of Location
select loc.location_name,
	   loc.INTERNAL_LOCATION_CODE,
	   pcac.PROPORTION,	   
	   pcaf.effective_start_date,
	   pcaf.effective_end_date,
       pcac.SOURCE_SUB_TYPE,
       pcac.segment2,
       pcac.segment3
from PAY_COST_ALLOCATIONS_F pcaf
    ,PAY_COST_ALLOC_ACCOUNTS pcac
    ,hr_locations_all loc
where pcaf.cost_allocation_record_id = pcac.cost_allocation_record_id
  and pcaf.source_type = 'LOC'
  and trunc(SYSDATE) BETWEEN pcaf.effective_start_date AND pcaf.effective_end_date
  and trunc(SYSDATE) BETWEEN loc.effective_start_date AND loc.effective_end_date
  and loc.location_code = nvl(:p_loc_code, loc.location_code)
  and pcaf.source_id = loc.location_id;

Tips for using the queries

  • Create a BI Publisher data model, add a new SQL Query data set that uses the HCM application database as its data source, and paste the query in. Remove the trailing semicolon as the data model editor rejects it.
  • Match the segment columns to your cost allocation key flexfield structure, as the number of segments differs between implementations.

Leave a Comment