SELECT b.user_profile_option_name "Long Name" ,
a.profile_option_name "Short Name" ,
NVL(g.responsibility_name,c.level_value) "Level Value" ,
c.PROFILE_OPTION_VALUE "Profile Value",
b.sql_validation
FROM apps.fnd_profile_options a ,
apps.FND_PROFILE_OPTIONS_VL b ,
apps.FND_PROFILE_OPTION_VALUES c ,
apps.FND_USER d ,
apps.FND_USER e ,
apps.FND_RESPONSIBILITY_VL g ,
apps.FND_APPLICATION h
WHERE 1 =1
AND a.profile_option_name = b.profile_option_name
AND a.profile_option_id = c.profile_option_id
AND a.application_id = c.application_id
AND c.last_updated_by = d.user_id (+)
AND c.level_value = e.user_id (+)
AND c.level_value = g.responsibility_id (+)
AND c.level_value = h.application_id (+)
--
AND c.level_id = 10003
AND g.responsibility_name = 'US Super HRMS Manager'
ORDER BY b.user_profile_option_name, c.level_id
;
--profile levels------
======================
'10001', 'SITE',
'10002', 'APP',
'10003', 'RESP',
'10005', 'SERVER',
'10006', 'ORG',
'10004', 'USER',
====================================
SELECT po.profile_option_name "NAME", po.user_profile_option_name,
DECODE (TO_CHAR (pov.level_id),
'10001', 'SITE',
'10002', 'APP',
'10003', 'RESP',
'10005', 'SERVER',
'10006', 'ORG',
'10004', 'USER',
'???'
) "LEVEL",
DECODE (TO_CHAR (pov.level_id),
'10001', '',
'10002', app.application_short_name,
'10003', rsp.responsibility_key,
'10005', svr.node_name,
'10006', org.NAME,
'10004', usr.user_name,
'???'
) "CONTEXT",
pov.profile_option_value "VALUE"
FROM apps.fnd_profile_options_vl po,
apps.fnd_profile_option_values pov,
apps.fnd_user usr,
apps.fnd_application app,
apps.fnd_responsibility rsp,
apps.fnd_nodes svr,
apps.hr_operating_units org
WHERE 1 = 1
AND pov.application_id = po.application_id
AND pov.profile_option_id = po.profile_option_id
AND usr.user_id(+) = pov.level_value
AND rsp.application_id(+) = pov.level_value_application_id
AND rsp.responsibility_id(+) = pov.level_value
AND app.application_id(+) = pov.level_value
AND svr.node_id(+) = pov.level_value
AND org.organization_id(+) = pov.level_value
and po.profile_option_name like 'CSP%';
--ORDER BY "NAME", pov.level_id, "VALUE";
a.profile_option_name "Short Name" ,
NVL(g.responsibility_name,c.level_value) "Level Value" ,
c.PROFILE_OPTION_VALUE "Profile Value",
b.sql_validation
FROM apps.fnd_profile_options a ,
apps.FND_PROFILE_OPTIONS_VL b ,
apps.FND_PROFILE_OPTION_VALUES c ,
apps.FND_USER d ,
apps.FND_USER e ,
apps.FND_RESPONSIBILITY_VL g ,
apps.FND_APPLICATION h
WHERE 1 =1
AND a.profile_option_name = b.profile_option_name
AND a.profile_option_id = c.profile_option_id
AND a.application_id = c.application_id
AND c.last_updated_by = d.user_id (+)
AND c.level_value = e.user_id (+)
AND c.level_value = g.responsibility_id (+)
AND c.level_value = h.application_id (+)
--
AND c.level_id = 10003
AND g.responsibility_name = 'US Super HRMS Manager'
ORDER BY b.user_profile_option_name, c.level_id
;
--profile levels------
======================
'10001', 'SITE',
'10002', 'APP',
'10003', 'RESP',
'10005', 'SERVER',
'10006', 'ORG',
'10004', 'USER',
====================================
SELECT po.profile_option_name "NAME", po.user_profile_option_name,
DECODE (TO_CHAR (pov.level_id),
'10001', 'SITE',
'10002', 'APP',
'10003', 'RESP',
'10005', 'SERVER',
'10006', 'ORG',
'10004', 'USER',
'???'
) "LEVEL",
DECODE (TO_CHAR (pov.level_id),
'10001', '',
'10002', app.application_short_name,
'10003', rsp.responsibility_key,
'10005', svr.node_name,
'10006', org.NAME,
'10004', usr.user_name,
'???'
) "CONTEXT",
pov.profile_option_value "VALUE"
FROM apps.fnd_profile_options_vl po,
apps.fnd_profile_option_values pov,
apps.fnd_user usr,
apps.fnd_application app,
apps.fnd_responsibility rsp,
apps.fnd_nodes svr,
apps.hr_operating_units org
WHERE 1 = 1
AND pov.application_id = po.application_id
AND pov.profile_option_id = po.profile_option_id
AND usr.user_id(+) = pov.level_value
AND rsp.application_id(+) = pov.level_value_application_id
AND rsp.responsibility_id(+) = pov.level_value
AND app.application_id(+) = pov.level_value
AND svr.node_id(+) = pov.level_value
AND org.organization_id(+) = pov.level_value
and po.profile_option_name like 'CSP%';
--ORDER BY "NAME", pov.level_id, "VALUE";
No comments:
Post a Comment