SELECT hat.transaction_id,
hat.product_code,
DECODE (hat.status,
'Y',
'IN-PROCESS TRANSACTION',
'D',
'DELETED',
'W',
'WORK IN PROGRESS',
'AC',
'APPROVED',
'S',
'SAVED FOR LATER',
'RI',
'RETURN FOR CORRECTION',
'E',
'ERROR',
'RIS',
'RETURN FOR CORRECTION - SAVED FOR LATER')
status,
hat.transaction_ref_table,
hat.item_key,
hat.process_name,
hat.transaction_document,
(SELECT text_value
FROM apps.wf_item_attribute_values v
WHERE ITEM_KEY = hat.item_key AND NAME = 'ERROR_MESSAGE_TEXT')
error_details
FROM hr_api_transactions hat
WHERE TRUNC (hat.last_update_date) = TRUNC (SYSDATE)
AND TRANSACTION_REF_TABLE IN
('PER_ABSENCE_ATTENDANCES',
'PER_APPRAISALS',
'HR_API_TRANSACTIONS')
No comments:
Post a Comment