--报表所属职责
SELECT FCPT.USER_CONCURRENT_PROGRAM_NAME,
FRG.REQUEST_GROUP_NAME,
FR.RESPONSIBILITY_KEY
FROM FND_CONCURRENT_PROGRAMS_TL FCPT,
FND_REQUEST_GROUP_UNITS FRGU,
FND_REQUEST_GROUPS FRG,
FND_RESPONSIBILITY FR
WHERE FCPT.CONCURRENT_PROGRAM_ID = FRGU.REQUEST_UNIT_ID
AND FRGU.REQUEST_GROUP_ID = FRG.REQUEST_GROUP_ID
AND FRG.REQUEST_GROUP_ID = FR.REQUEST_GROUP_ID
AND lower(FCPT.USER_CONCURRENT_PROGRAM_NAME) LIKE lower('&program_name');
SELECT FCPT.USER_CONCURRENT_PROGRAM_NAME,
FROM FND_CONCURRENT_PROGRAMS_TL FCPT,
WHERE FCPT.CONCURRENT_PROGRAM_ID = FRGU.REQUEST_UNIT_ID
--菜单所属职责
select fffv.function_name, fm.menu_name,fr.responsibility_key
from fnd_form_functions_vl fffv,
fnd_menu_entries_vl fmev,
fnd_menus fm,
fnd_responsibility fr
where fffv.function_id = fmev.function_id
and fmev.menu_id = fm.menu_id
and fmev.menu_id = fr.menu_id(+)
and fffv.function_name = '&function_name';
select fffv.function_name, fm.menu_name,fr.responsibility_key
from fnd_form_functions_vl fffv,
where fffv.function_id = fmev.function_id
--报表所属职责
SELECT FCPT.USER_CONCURRENT_PROGRAM_NAME,
FRG.REQUEST_GROUP_NAME,
FR.RESPONSIBILITY_KEY
FROM FND_CONCURRENT_PROGRAMS_TL FCPT,
FND_REQUEST_GROUP_UNITS FRGU,
FND_REQUEST_GROUPS FRG,
FND_RESPONSIBILITY FR
WHERE FCPT.CONCURRENT_PROGRAM_ID = FRGU.REQUEST_UNIT_ID
AND FRGU.REQUEST_GROUP_ID = FRG.REQUEST_GROUP_ID
AND FRG.REQUEST_GROUP_ID = FR.REQUEST_GROUP_ID
AND lower(FCPT.USER_CONCURRENT_PROGRAM_NAME) LIKE lower('&program_name');
SELECT FCPT.USER_CONCURRENT_PROGRAM_NAME,
FROM FND_CONCURRENT_PROGRAMS_TL FCPT,
WHERE FCPT.CONCURRENT_PROGRAM_ID = FRGU.REQUEST_UNIT_ID
--菜单所属职责
select fffv.function_name, fm.menu_name,fr.responsibility_key
from fnd_form_functions_vl fffv,
fnd_menu_entries_vl fmev,
fnd_menus fm,
fnd_responsibility fr
where fffv.function_id = fmev.function_id
and fmev.menu_id = fm.menu_id
and fmev.menu_id = fr.menu_id(+)
and fffv.function_name = '&function_name';
select fffv.function_name, fm.menu_name,fr.responsibility_key
from fnd_form_functions_vl fffv,
where fffv.function_id = fmev.function_id
来源:https://www.cnblogs.com/aocle/archive/2011/10/10/2205077.html