Run this query.... SELECT ROUND (SUM (DECODE (NVL (prl.currency_code, l_currency), 'USD', DECODE (prl.

order_type_lookup_code, 'RATE', prl.amount, 'FIXED PRICE', prl.amount, DECODE (NVL -1 ), -1, prl.quantity * prl.unit_price, prl.quantity * prl.currency_unit_price ) ), ( prxl_po_req_approval1.convert_currency (NVL (prl.currency_code,l_currency),'USD',SYSDATE,'Corporate') * DECODE (prl.order_type_lookup_code, 'RATE', prl.amount, 'FIXED PRICE', prl.amount, DECODE (NVL (prl.currency_unit_price, -1 ), -1, prl.quantity * prl.unit_price, prl.quantity * prl.currency_unit_price ) ) ) ) ), 2 ) extended_amount, prl.to_person_id requestor_id FROM po_requisition_headers_all prh, po_requisition_lines_all prl, per_all_people_f pap WHERE 1 = 1 AND prh.requisition_header_id = prl.requisition_header_id AND prl.to_person_id = pap.person_id AND prh.requisition_header_id = p_req_header_id GROUP BY prl.to_person_id; SELECT prl.to_person_id requestor_id FROM po_requisition_headers_all prh, po_requisition_lines_all prl,

(prl.currency_unit_price,

to_person_id. per_all_people_f pap WHERE 1 = 1 AND prh.to_person_id = pap.profile_option_id 'PRXL: ALLOW SELF APPROVAL' 10006 -.to_person_id. po_requisition_lines_all prl. .level_id = 10001 -.to_person_id requestor_id FROM po_requisition_headers_all prh.person_id AND prh.person_id supervisor_id.requisition_header_id = <req_header_id> GROUP BY prl.requisition_header_id = prl. = fpov.profile_option_id AND fpo.requisition_header_id = prl.level_value ANd fu. fpov.profile_option_name = AND fpov.level_id AND fpov.PRXL: ALLOW SELF APPROVAL --User level SELECT profile_option_value --INTO l_profile_value FROM FND_PROFILE_OPTIONS FND_PROFILE_OPTION_VALUES FND_USER WHERE fpo. SELECT ppf1.profile_option_name = 'PRXL: ALLOW SELF APPROVAL' AND fpov.requisition_header_id = p_req_header_id prl.profile_option_id AND fpo.WHERE AND AND AND GROUP BY per_all_people_f pap 1 = 1 prh. FND_PROFILE_OPTION_VALUES fpov WHERE fpo.to_person_id = pap.level_id = fpo.user_id p_person_id --Org level SELECT profile_option_value --INTO l_profile_value FROM fnd_profile_options FND_PROFILE_OPTION_VALUES fpov WHERE fpo.requisition_header_id prl.user level fu.profile_option_id = fpov.person_id prh.profile_option_name AND fpov.org level --site level SELECT profile_option_value --INTO l_profile_value FROM fnd_profile_options fpo.requisition_header_id AND prl. fu = fpov.profile_option_id AND fpo.employee_id AND rownum = 1 = = = = fpo.site level -----------------------------------------------------------SELECT prl.profile_option_id 'PRXL: ALLOW SELF APPROVAL' 10004 -. Profile .

If you get the data for assignment query then check the supervisor_id column value.supervisor_id = ppf1.SYSDATE)) AND TRUNC (NVL (ppf1.SYSDATE)) AND SYSDATE BETWEEN TRUNC(NVL (ppf.per_all_people_f ppf1.effective_start_date.effective_end_date. 'PRXL: APPROVAL_' || 'LEVEL' || '' || NVL (ppf.person_id = ppf.attribute10.SYSDATE)) AND TRUNC (NVL (ppf.effective_start_date.person_id AND ppf.l_level_value FROM per_all_people_f ppf.SYSDATE)) AND TRUNC (NVL (psf. 7) level_value.attribute10.effective_end_date.if it is null then issue with .SYSDATE)) select * from per_all_people_f where person_id=<requestor_id> select * from per_all_assignments_f where person_id=<requestor_id> if you didnt get records for assignment query then take the employee_number from first query and map with assignment_number. 7) level_value --INTO l_supervisor_id.SYSDATE)) AND SYSDATE BETWEEN TRUNC(NVL (ppf1.attribute10..person_id = <requestor_id> AND SYSDATE BETWEEN TRUNC(NVL(psf.'LEVEL' || '' || NVL (ppf1.SYSDATE)) SELECT 'LEVEL' || '' || NVL (ppf.SYSDATE)) AND TRUNC (NVL (ppf.. 7) || '_NON_BILL' profile_name --INTO l_level_value FROM per_all_people_f ppf WHERE 1 = 1 AND ppf.effective_end_date.effective_start_date.effective_start_date. per_all_assignments_f psf WHERE 1 = 1 AND psf.person_id AND psf.person_id = <supervisor_id> AND SYSDATE BETWEEN TRUNC (NVL (ppf.effective_end_date.

Sign up to vote on this title
UsefulNot useful