Loading

Wednesday, February 3, 2010

Query to find the programs attached to request groups in 11i

select REQUEST_GROUP_NAME,        decode(REQUEST_UNIT_TYPE,'A'
                     ,'Application','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_GROUP_NAME='&request_roup_name'
 AND request_unit_type='P'
UNION
select REQUEST_GROUP_NAME,
          decode(REQUEST_UNIT_TYPE,'A'
                      ,'Application','P'
                      ,'Program','S'
                      ,'Request Set','no') REQUEST_UNIT_TYPE,
          application_name program_name
 from FND_REQUEST_GROUPS A,
         FND_REQUEST_GROUP_UNITS b,
         fnd_application_TL C
where a.request_group_id=b.request_group_id
 AND B.REQUEST_UNIT_ID=C.application_id
 AND REQUEST_GROUP_NAME='&request_roup_name'
 AND request_unit_type='A'
 And language='US'
UNION
Select REQUEST_GROUP_NAME,
          decode(REQUEST_UNIT_TYPE,'A'
                      ,'Application','P'
                      ,'Program','S'
                      ,'Request Set','no') REQUEST_UNIT_TYPE,
          request_set_name program_name
 from FND_REQUEST_GROUPS A,
         FND_REQUEST_GROUP_UNITS b,
         FND_REQUEST_SETS C
where a.request_group_id=b.request_group_id
 AND B.REQUEST_UNIT_ID=C.request_set_id
 AND REQUEST_GROUP_NAME='&request_roup_name'
 AND request_unit_type='S';

Many thanks Gokula Raman Bose for contributing the above query.
Email: sarikarthi@yahoo.co.in

1 Responses to “Query to find the programs attached to request groups in 11i”

gopichand said...
October 14, 2016 at 12:00 AM

Thanks..Saved my time :-)


Post a Comment

Disclaimer

The ideas, thoughts and concepts expressed here are my own. They, in no way reflect those of my employer or any other organization/client that I am associated. The articles presented doesn't imply to any particular organization or client and are meant only for knowledge Sharing purpose. The articles can't be reproduced or copied without the Owner's knowledge or permission.