根据Form名查询职责、应用产品、说明、安全组、有效日期从、有效日期至、Form名称、应用产品、功能名、用户功能名、说明。
注意:通过菜单查找指定Form对应职责,所以应该将该Form功能挂到菜单下
SELECT DISTINCT frt.responsibility_name "责任", fat.application_name "应用产品", frt.description "说明", fsgt.security_group_name "安全组", fr.start_date "有效日期从", fr.end_date "有效日期至", fft.user_form_name "Form名称", fat.application_name "应用产品", fff.function_name "功能名", ffft.user_function_name "用户功能名", fft.description "说明" FROM fnd_form ff, fnd_form_tl fft, fnd_application_tl fat, fnd_form_functions fff, fnd_form_functions_tl ffft, fnd_menus_tl fmt, fnd_menus fm, fnd_menu_entries fme, fnd_responsibility_tl frt, fnd_responsibility fr, fnd_security_groups_tl fsgt, fnd_security_groups fsg, wf_all_user_roles wura WHERE ff.form_id = fft.form_id AND fff.form_id = ff.form_id AND fft.application_id = fat.application_id AND ffft.function_id = fff.function_id AND fme.function_id = fff.function_id AND fme.menu_id = fm.menu_id AND fm.menu_id = fmt.menu_id AND frt.responsibility_id = fr.responsibility_id AND fsgt.security_group_id = fsg.security_group_id AND fsg.security_group_key = REPLACE(substr(wura.role_name, instr(wura.role_name, '|', 1, 3) + 1), '%col', ':') AND fr.menu_id = fm.menu_id AND frt.responsibility_id = wura.role_orig_system_id AND ff.form_name = 'CUXHR25559' AND fft.language = 'ZHS' AND ffft.language = 'ZHS' AND fmt.language = 'ZHS' AND fsgt.language = 'ZHS' AND frt.language = 'ZHS'