Oracle EBS 獲取使用者掛的職責 請求 請求的類別(RTF還是什麼的)
阿新 • • 發佈:2018-11-23
select fu.user_ID, fu.user_name, fu.start_date, fu.END_DATE, fu.description, fe.last_name, fr.RESPONSIBILITY_NAME, fr.description, --職責描述 fr.start_date, fr.END_DATE, frg.request_group_name, ---- 請求組名稱 frg.description requestdsc, ---- 請求組描述 fr.menu_id, ---- 選單 ID REQUEST_UNIT_TYPE, ---- 請求型別 fcp.user_concurrent_program_name, ---請求併發程式名 decode(fcp.EXECUTION_METHOD_CODE, 'H', '主機', 'S', '立即', 'J', 'Java 儲存過程','K', 'Java 併發程式', 'M', '多語言功能', 'P', 'Oracle Reports', 'I', 'PL/SQL 儲存過程', 'B', '請求集階段函式', 'A', '派生', 'L', 'SQL*Loader 程式', 'Q', 'SQL*Plus', 'E', 'Perl 併發程式') from fnd_user fu, hr_employees_all_v fe, FND_USER_RESP_GROUPS_DIRECT ugd, FND_RESPONSIBILITY_VL fr, fnd_request_groups frg, FND_REQUEST_GROUP_UNITS frgu, FND_CONCURRENT_PROGRAMS_VL fcp where to_char(fu.creation_date, 'yyyy') >= '2008' and fu.employee_id = fe.employee_id(+) --使用者與職員關係 and fu.user_id = ugd.user_id and ugd.RESPONSIBILITY_ID = fr.responsibility_id and ugd.RESPONSIBILITY_APPLICATION_ID = fr.APPLICATION_ID --- 以上使用者與職責關係 and fr.request_group_id = frg.request_group_id(+) and fr.group_application_id = frg.application_ID(+) --- 以上是請求組和職責關係 and frgu.application_id(+) = frg.application_ID and frg.request_group_id = frgu.request_group_id(+) --- 以上是請求組中間表與職責 and fcp.CONCURRENT_PROGRAM_ID = frgu.REQUEST_UNIT_ID and frgu.UNIT_application_id = fcp.application_id and user_name = 'SUNYUKUN' --- 'SUNYUKUN' 登入使用者名稱,可變數 order by User_id, Responsibility_name