SELECT responsibility_name,
(SELECT name
FROM hr_all_organization_units
WHERE organization_id = fpov.profile_option_value)
operating_unit
FROM applsys.fnd_profile_option_values fpov,
applsys.fnd_profile_options fpo,
applsys.fnd_profile_options_tl fpot,
applsys.fnd_responsibility_tl fr
WHERE 1 = 1
AND fpo.profile_option_name = fpot.profile_option_name
AND fpo.profile_option_id = fpov.profile_option_id
AND fr.responsibility_id(+) = fpov.level_value
-- AND fr.responsibility_id = :$PROFILES$.RESP_ID
AND fpot.profile_option_name = 'ORG_ID'
-- and fpov.profile_option_value='11'
--AND fr.responsibility_name LIKE '%Payables%Manager%'
AND fr.language = 'US'
AND fpot.language = 'US'
ORDER BY 2
(SELECT name
FROM hr_all_organization_units
WHERE organization_id = fpov.profile_option_value)
operating_unit
FROM applsys.fnd_profile_option_values fpov,
applsys.fnd_profile_options fpo,
applsys.fnd_profile_options_tl fpot,
applsys.fnd_responsibility_tl fr
WHERE 1 = 1
AND fpo.profile_option_name = fpot.profile_option_name
AND fpo.profile_option_id = fpov.profile_option_id
AND fr.responsibility_id(+) = fpov.level_value
-- AND fr.responsibility_id = :$PROFILES$.RESP_ID
AND fpot.profile_option_name = 'ORG_ID'
-- and fpov.profile_option_value='11'
--AND fr.responsibility_name LIKE '%Payables%Manager%'
AND fr.language = 'US'
AND fpot.language = 'US'
ORDER BY 2
No comments:
Post a Comment