Главная > Oracle e-Business Suite > Список полномочий и групп запросов для отчета


Список полномочий и групп запросов для отчета

Запрос для вывода списка полномочий и групп запросов по коду или имени отчета/параллельной программы:

with params as (
select 'FNDATREP' as short_name
      ,''    as long_name
      ,'RU'  as lang /* RU;US */
from dual
)
select  p1.concurrent_program_name
       ,pt.user_concurrent_program_name
       ,fa.application_short_name as appl_resp
       ,r.responsibility_key
       ,rt.responsibility_name      
       ,fa1.application_short_name as appl_request_group
       ,g.request_group_name
from fnd_request_groups      g,
     fnd_request_group_units u,
     fnd_application    fa,
     fnd_application    fa1,         
     fnd_concurrent_programs_tl pt,
     fnd_concurrent_programs    p1,
     fnd_responsibility    r,
     fnd_responsibility_tl rt,
     params
where 1=1
      and u.application_id = g.application_id
      and u.request_group_id = g.request_group_id
      and (u.request_unit_id = pt.concurrent_program_id
          or u.request_unit_type = 'A')
      and u.unit_application_id = pt.application_id
      and pt.application_id = fa.application_id
      and pt.concurrent_program_id = p1.concurrent_program_id
      and g.application_id = fa1.application_id
      and r.request_group_id = g.request_group_id
      and r.responsibility_id = rt.responsibility_id
      and rt.language = params.lang
      and pt.language  = params.lang
      and (
            (p1.concurrent_program_name like '%'||params.short_name||'%' 
             and params.short_name is not null 
            ) 
            or 
            (pt.user_concurrent_program_name like '%'||params.long_name||'%' 
             and params.long_name is not null and params.short_name is null
            )
          )
order by 1,2;

Похожие записи:

  1. Аноним
    18 Февраль 2020 в 13:26 | #1

    Иногда (когда нет сисадмина) нужно узнать название группы запросов, которое назначено для полномочия. Можно применять такой запрос:

    with params as (
    select 'Диспетчер дебиторов' as responsibility_name
    ,'RU' as lang /* RU;US */
    from dual
    )
    select fa.application_short_name,
    g.request_group_name
    from fnd_request_groups g,
    fnd_responsibility r,
    fnd_responsibility_tl rt,
    fnd_application fa,
    params
    where 1=1
    and r.request_group_id = g.request_group_id
    and r.responsibility_id = rt.responsibility_id
    and rt.responsibility_name = params.responsibility_name
    and fa.application_id = g.application_id
    and rt.language = params.lang

  1. Пока что нет уведомлений.