Sunday, 10 April 2011

List of Program and Request Set attached to a Responsibility

List of Program and Request Set attached to a Responsibility


Below query can be used to extract the list of concurrent program and Request setname attached to a given Responsibiltiy

SELECT    request_group_name,
               DECODE (request_unit_type, 'P', 'Program',
                               'S', 'Request Set', 'no')  request_unit_type,
               user_concurrent_program_name program_name
FROM      fnd_request_groups a,
               fnd_request_group_units b,
               fnd_concurrent_programs_vl c
WHERE    a.request_group_id = b.request_group_id
AND         b.request_unit_id = c.concurrent_program_id
AND         request_unit_type = 'P'
AND         a.request_group_id IN
                     (SELECT request_group_id
                      FROM fnd_responsibility
                      WHERE responsibility_id IN
                                 (SELECT responsibility_id
                                   FROM fnd_responsibility_tl
                                   WHERE responsiblity_name = '&Resp_name'
                                    AND LANGUAGE = 'US')
                       )
UNION
SELECT   request_group_name,
               DECODE (request_unit_type, 'P', 'Program', 'S', 'Request Set', 'no') request_unit_type,
                 user_request_set_name program_name
FROM      fnd_request_groups a,
                 fnd_request_group_units b,
                 fnd_request_sets_tl c
WHERE   a.request_group_id = b.request_group_id
AND        b.request_unit_id = c.request_set_id
AND        request_unit_type = 'S'
AND        a.request_group_id IN
                     (SELECT request_group_id
                       FROM fnd_responsibility
                       WHERE responsibility_id IN
                                   (SELECT responsibility_id
                                    FROM fnd_responsibility_tl
                                    WHERE responsiblity_name = '&Resp_name'
                                    AND LANGUAGE = 'US')
                      );

2 comments:

Kumar's said...

Hi prashanth ..i am new to apps i am developing report on hrms... shall i use views or base tables to develop

i need help can u mail to kumarapps.kumar26@gmail.com

thanks in advance

Kumar's said...

Hi prashanth thank you for giving good knowledge ,.... i am developing a report in hrms i am new to this tech ..... do i use views or tables in developing a query


i am kumar please give me response on kumarapps.kumar26@gmail.com