Fetch Delta data : Report Scheduled : Fetch Delta data : Fetch Incremental Data
SELECT request_name,
fa_book,
request_date,
as_of_date,
user_id,
user_name,
status_code
FROM (SELECT 'Create Accounting'
request_name,
(SELECT value
FROM fusion_ora_ess.request_property_view
WHERE name = 'submit.argument26.attributeValue'
AND requestid = req.requestid) fa_book,
To_char(req.requestedstart, 'MM/DD/YYYY HH:MI:SS AM')
request_date,
To_char(SYSDATE, 'MM/DD/YYYY HH:MI:SS AM') as_of_date,
req.username user_id,
req.username user_name,
req.preprocess_status status_code
FROM ess_request_history req
WHERE 1 = 1
AND ( req.requestedstart >= :p_from_date
OR :p_from_date IS NULL )
AND ( req.requestedstart <= :p_to_date
OR :p_to_date IS NULL )
AND DEFINITION =
'JobDefinition://oracle/apps/ess/financials/assets/shared/FAFSNAPRPT')
WHERE 1 = 1
and (fa_book in (:p_book_name) OR 'All' in(:p_book_name||'All'))
No comments:
Post a Comment