Sometimes the Oracle view will not fetch the data and so we need to initialize the session
Execute the below insert command to initialize the session
insert into fnd_sessions values (userenv('SESSIONID'),SYSDATE);
Now Execute the Query with needed columns
select pelv.element_name, pelv.PAYROLL_NAME, (select concatenated_segments from PAY_COST_ALLOCATION_KEYFLEX where COST_ALLOCATION_KEYFLEX_ID = pelv.cost_allocation_keyflex_id) cost_code_combination,
(select concatenated_segments from PAY_COST_ALLOCATION_KEYFLEX where COST_ALLOCATION_KEYFLEX_ID = pelv.balancing_keyflex_id) bal_code_combination
from PAY_ELEMENT_LINKS_V pelv