To get the Pay Element details.
/* Formatted on 01/12/2015 11:45:57 (QP5 v5.126.903.23003) */
SELECT petf.ELEMENT_TYPE_ID "Element_ID",
petf.element_name "Element Name",
petf.reporting_name "Reporting Name",
petf.description "Description",
pec.classification_name "Classification",
DECODE (petf.ADDITIONAL_ENTRY_ALLOWED_FLAG,
'Y',
'Yes',
'N',
'No')
"Additional Entry Allowed",
DECODE (petf.ADJUSTMENT_ONLY_FLAG,
'Y',
'Yes',
'N',
'No')
"Adjustment Only",
DECODE (petf.CLOSED_FOR_ENTRY_FLAG,
'Y',
'Yes',
'N',
'No')
"Closed For Entry",
DECODE (petf.MULTIPLE_ENTRIES_ALLOWED_FLAG,
'Y',
'Yes',
'N',
'No')
"Multiple Entries",
DECODE (petf.process_in_run_flag,
'Y',
'Yes',
'N',
'No')
"Process In Run",
DECODE (petf.STANDARD_LINK_FLAG,
'Y',
'Yes',
'N',
'No')
"Standard Link",
DECODE (petf.processing_type,
'N',
'Non-Recurring',
'R',
'Recurring')
"Rec Or Non Rec",
DECODE (petf.post_termination_rule,
'A',
'Actual Termination',
'F',
'Final Close',
'L',
'Last Standard Process')
"Termination Rule",
petf.effective_start_date "Effective Start Date",
petf.effective_end_date "Effective End Date",
petf.processing_priority,
TO_CHAR (petf.creation_date, 'MM/DD/YYYY') creation_date
FROM pay_element_types_f petf, pay_element_classifications pec
WHERE petf.classification_id = pec.classification_id
ORDER BY 1;
Enjoy and Stay Well !! :)
/* Formatted on 01/12/2015 11:45:57 (QP5 v5.126.903.23003) */
SELECT petf.ELEMENT_TYPE_ID "Element_ID",
petf.element_name "Element Name",
petf.reporting_name "Reporting Name",
petf.description "Description",
pec.classification_name "Classification",
DECODE (petf.ADDITIONAL_ENTRY_ALLOWED_FLAG,
'Y',
'Yes',
'N',
'No')
"Additional Entry Allowed",
DECODE (petf.ADJUSTMENT_ONLY_FLAG,
'Y',
'Yes',
'N',
'No')
"Adjustment Only",
DECODE (petf.CLOSED_FOR_ENTRY_FLAG,
'Y',
'Yes',
'N',
'No')
"Closed For Entry",
DECODE (petf.MULTIPLE_ENTRIES_ALLOWED_FLAG,
'Y',
'Yes',
'N',
'No')
"Multiple Entries",
DECODE (petf.process_in_run_flag,
'Y',
'Yes',
'N',
'No')
"Process In Run",
DECODE (petf.STANDARD_LINK_FLAG,
'Y',
'Yes',
'N',
'No')
"Standard Link",
DECODE (petf.processing_type,
'N',
'Non-Recurring',
'R',
'Recurring')
"Rec Or Non Rec",
DECODE (petf.post_termination_rule,
'A',
'Actual Termination',
'F',
'Final Close',
'L',
'Last Standard Process')
"Termination Rule",
petf.effective_start_date "Effective Start Date",
petf.effective_end_date "Effective End Date",
petf.processing_priority,
TO_CHAR (petf.creation_date, 'MM/DD/YYYY') creation_date
FROM pay_element_types_f petf, pay_element_classifications pec
WHERE petf.classification_id = pec.classification_id
ORDER BY 1;
Enjoy and Stay Well !! :)
/* Formatted on 28/10/2020 08:19:22 (QP5 v5.215.12089.38647)
ReplyDeleteGET COSTED ELEMENTS
*/
SELECT petf.ELEMENT_TYPE_ID "Element_ID",
petf.element_name "Element Name",
petf.reporting_name "Reporting Name",
petf.description "Description",
pec.classification_name "Classification",
pcak.CONCATENATED_SEGMENTS "Element GL Costing",
DECODE (petf.ADDITIONAL_ENTRY_ALLOWED_FLAG, 'Y', 'Yes', 'N', 'No')
"Additional Entry Allowed",
DECODE (petf.ADJUSTMENT_ONLY_FLAG, 'Y', 'Yes', 'N', 'No')
"Adjustment Only",
DECODE (petf.CLOSED_FOR_ENTRY_FLAG, 'Y', 'Yes', 'N', 'No')
"Closed For Entry",
DECODE (petf.MULTIPLE_ENTRIES_ALLOWED_FLAG, 'Y', 'Yes', 'N', 'No')
"Multiple Entries",
DECODE (petf.process_in_run_flag, 'Y', 'Yes', 'N', 'No')
"Process In Run",
DECODE (petf.STANDARD_LINK_FLAG, 'Y', 'Yes', 'N', 'No')
"Standard Link",
DECODE (petf.processing_type,
'N', 'Non-Recurring',
'R', 'Recurring')
"Rec Or Non Rec",
DECODE (petf.post_termination_rule,
'A', 'Actual Termination',
'F', 'Final Close',
'L', 'Last Standard Process')
"Termination Rule",
petf.effective_start_date "Effective Start Date",
petf.effective_end_date "Effective End Date",
petf.processing_priority,
TO_CHAR (petf.creation_date, 'MM/DD/YYYY') creation_date
FROM PAY_ELEMENT_TYPES_F PETF,
pay_element_classifications pec,
PAY_ELEMENT_LINKS_F PELF,
pay_cost_allocation_keyflex pcak
WHERE 1 = 1
AND petf.classification_id = pec.classification_id
AND PELF.ELEMENT_TYPE_ID = PETF.ELEMENT_TYPE_ID
AND pcak.cost_allocation_keyflex_id = pelf.cost_allocation_keyflex_id
--AND PETF.ELEMENT_NAME LIKE '%GROSS%'
AND PELF.ELEMENT_TYPE_ID = PETF.ELEMENT_TYPE_ID;